Home Comments

Semaphore

g00fyg00fy Member SalvaniaOrganization: SalvaniaProject: Database systems ✭✭
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

Comments

  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    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.
Sign In or Register to comment.