Carlos Irigaray - 2005-12-28

I have 3 different SocketServices with 1 to 5 different SocketPorts attached to them.  Based on a specific input from a SocketPort I want to reattach that SocketPort to another SocketService.
The problem I am having is that since "pending()" is called while we are inside the MUTEX_START and attach() calls svc->detach() in order to rearrange the linked list the function also calls enterMutex and I end up having that thread locked!

I am thinking about implementing my own linked list on a derived class of SocketService and the onUpdate handler reattach any service that "requests" it by setting some flags.

What do you recommend?  Any suggestions?