class toSemaphore
|
Encapsulation of pthread semaphores. More... |
|
|
Public Methods
Encapsulation of pthread semaphores. A semaphore can be raise to any value
but will wait till raised above zero when lowered below 0. Can also be implemented
without pthreads using Qt multithreaded primitives. Observe that these function
different than Qt semaphores.
toSemaphore ()
| toSemaphore |
toSemaphore (int val)
| toSemaphore |
~toSemaphore ()
| ~toSemaphore |
toSemaphore ()
| toSemaphore |
Create semaphore
Unimplemented copy constructor.
toSemaphore (int val)
| toSemaphore |
Create semaphore
Parameters:
val | Value of new semaphore.
|
Increase semaphore value by 1.
Decrease semaphore value by 1, wait for it to never go below 0.
Get current semaphore value.