Concept Framework 1.0 documentation Contents | Index

standard.lib.thread

Static library name Version Deprecated
standard.lib.thread version 1.0 no

Import library : standard.lib.thread
(you must include this at the top of your source: "import standard.lib.thread" (no quotes)


Description:
Basic thread control in Concept. Also implements the DIJKSTRA Semaphores.


Contained static functions:
KillThread Kills a thread
RunThread Creates and runs a thread
Sleep Sleeps for a given number of milliseconds
WaitThread Waits for a thread to end
semcreate Creates a semaphore
semdone Destroy semaphore
seminit Create and initialize a semaphore, with an empty wait queue, and couter=' val'
semp 'P' Operation on the 'sem' semaphore'; its counter is decremented; if counter < 0, then the calling task is moved to the wait queue
semv 'V' Operation on the 'sem' semaphore'; its counter is incremented; if counter >= 0 and the wait queue is not empty, then one of the waiting tasks is extracted to continue running




Documented by Eduard Suica, generation time: Thu Oct 15 20:02:05 2009 GMT(c)2009 RadGs Software