semaphore

Members

Functions

main
int main(char[][] args)

Example program for the tango.core.sync.Barrier module.

testProcessSemaphore
void testProcessSemaphore(char[] programName)

Test for multi-process semaphores: this test works by creating a copy of this process that tries to acquire the ProcessSemaphore that was created in this function. If everything works as expected, the attempt should fail, as the count of the semaphore is set to 1.

testSecondProcessSemaphore
int testSecondProcessSemaphore()

Test for multi-process semaphores (second process).

testSemaphore
void testSemaphore()

Test for single-process (multi-threaded) semaphores.

Variables

SemaphoreName
char[] SemaphoreName;
Undocumented in source.

Meta

License

BSD style: $(LICENSE)

Authors

Juan Jose Comellas <juanjo@comellas.com.ar> Converted to use core.sync by Sean Kelly <sean@f4.ca>