I posted a link in my last post that has an example of piping input/output between two different threads (including waiting on the read thread if there's nothing to read). Please read that and you...
Type: Posts; User: helloworld922
I posted a link in my last post that has an example of piping input/output between two different threads (including waiting on the read thread if there's nothing to read). Please read that and you...
hmm... so you're enqueueing items onto a linked list and reading them off from different threads?
I would still go ahead with the suggestion I made:
The enqueue thread would obtain the lock for...
I'm not quite sure what it is you want, tell me if this is something like what you want:
1. Have a thread poll a list for items that need to be processed. If there is something, process it. If...