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?
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.