Archived
This forum has been archived. Please start a new discussion on GitHub.
Semaphore
Hi,
I would like to see a semaphore built into Ice. The principle is that x threads are allowed to enter a same section, and where one leaves he do a broadcast() that he leaves and another thread can enter the section. It's just ensuring not more then x threads are working on the same (maybe heavily loaded line) thing...
Greetz
I would like to see a semaphore built into Ice. The principle is that x threads are allowed to enter a same section, and where one leaves he do a broadcast() that he leaves and another thread can enter the section. It's just ensuring not more then x threads are working on the same (maybe heavily loaded line) thing...
Greetz
0
Comments
-
Have a look at the threading chapter of the Ice manual. Ice provides a number of synchronization primitives, including IceUtil::Monitor, which does what you want.
Cheers,
Michi.0