KernAllocMutexLock: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
==Synopsis== | ==Synopsis== | ||
APIRET APIENTRY KernAllocMutexLock(KEEMutexLock* ml); | APIRET APIENTRY KernAllocMutexLock(KEEMutexLock* ml); | ||
==Parameters== | ==Parameters== | ||
;ml: | ;ml: Pointer to a mutexlock structure in 32 bit memory. | ||
[[Category:KEE]] | [[Category:KEE]] |
Revision as of 12:18, 19 July 2020
Initialize a mutexlock. This is basically the semaphore equivalent of a spinlock. Likewise, it is usable to protect critical regions. The difference to a spinlock is that waiting on a mutex will send the thread that processor is executing to sleep. This makes sense - in contrast to a spinlock - for longer critical regions.
Synopsis
APIRET APIENTRY KernAllocMutexLock(KEEMutexLock* ml);
Parameters
- ml
- Pointer to a mutexlock structure in 32 bit memory.