9
* @defgroup Threading Threading
10
* @addtogroup Threading
16
* Sleep for a set amount of mucro seconds.
22
* @defgroup Mutex Mutex
28
* An SMutex is an opaque data type that handles the platform specifics of the
29
* Mutex, if it exists. If not we roll our own.
31
typedef struct SMutex SMutex;
34
* Create a new SMutex;
43
s_mutex_free (SMutex * self);
48
* Returns a key used to unlock the mutex.
51
s_mutex_lock (SMutex * self);
56
* @param self The mutex to unlock;
57
* @param key The key used to unlock the mutex.
60
s_mutex_unlock (SMutex * self, suint key);
66
s_mutex_check_lock (SMutex * self);
73
#endif /* __H_THREAD__ */