How to implement waitAny
on more than 64 handles?
I have simple problem, i have many threads working until end of data, when thread is end of data then signalling to thread on what i running this waitAny
for idle thread and give him next package of data.
You might want to consider implementing something like a queue for notification packets for the 'waitAny' thread to wait on. When one of your multitude of threads completes it's operation, it places a notification packet on the queue. Your waitAny
turns into a wait on a single event that indicates something is in the queue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With