#include "ktypes.h"
Defines | |
| #define | KMutex_create() _KMutex_create (__K_FILE__, __K_LINE__) |
| Creates a Mutex. | |
| #define | KMutex_destroy(kMutex) _KMutex_destroy (kMutex, __K_FILE__, __K_LINE__) |
| Deletes a mutex. | |
| #define | KMutex_lock(kMutex) _KMutex_lock (kMutex, __K_FILE__, __K_LINE__) |
| Locks a mutex. If the mutex already locked, waiting unlock then locks the mutex. | |
| #define | KMutex_unlock(kMutex) _KMutex_unlock (kMutex, __K_FILE__, __K_LINE__) |
| Unlocks a mutex. | |
| #define | KMutex_timelock(kMutex, ms) _KMutex_timelock (kMutex, ms, __K_FILE__, __K_LINE__) |
| Locks a mutex and waits during a delay. If the mutex already locked, waiting unlock then locks the mutex during the given delay. | |
Typedefs | |
| typedef _KMutex | KMutex |
| Mutex. | |
Functions | |
| KTL_API KMutex * | _KMutex_create (KString sFile, KInt32 iLine) |
| Creates a Mutex. | |
| KTL_API void | _KMutex_destroy (KMutex **kMutex, KString file, KInt line) |
| Deletes a mutex. | |
| KTL_API KBool | _KMutex_lock (KMutex *kMutex, KString file, KInt line) |
| Locks a mutex. If the mutex already locked, waiting unlock then locks the mutex. | |
| KTL_API KBool | _KMutex_unlock (KMutex *kMutex, KString file, KInt line) |
| Unlocks a mutex. | |
| KTL_API KBool | _KMutex_timelock (KMutex *kMutex, KUInt32 ms, KString file, KInt line) |
| Locks a mutex and waits during a delay. If the mutex already locked, waiting unlock then locks the mutex during the given delay. | |
|
|
Creates a Mutex.
|
|
|
Deletes a mutex.
|
|
|
Locks a mutex. If the mutex already locked, waiting unlock then locks the mutex.
|
|
|
Locks a mutex and waits during a delay. If the mutex already locked, waiting unlock then locks the mutex during the given delay.
|
|
|
Unlocks a mutex.
|
|
||||||||||||
|
Creates a Mutex.
|
|
||||||||||||||||
|
Deletes a mutex.
|
|
||||||||||||||||
|
Locks a mutex. If the mutex already locked, waiting unlock then locks the mutex.
|
|
||||||||||||||||||||
|
Locks a mutex and waits during a delay. If the mutex already locked, waiting unlock then locks the mutex during the given delay.
|
|
||||||||||||||||
|
Unlocks a mutex.
|
1.3.8