This file defines structures and cosntants for synchronization and mutual exclusion functions of PwnOS.
| Sync.inc | This file defines structures and cosntants for synchronization and mutual exclusion functions of PwnOS. |
| LOCKSTRUCT | This structure is the centre of synchronization data in PwnOS, defining the state of an access lock. |
This structure is the centre of synchronization data in PwnOS, defining the state of an access lock.
| AccessFlags | used with LOCK_FLAG_USELOCK_BITNUM to gain access to the structure, and LOCK_FLAG_STATE_BITNUM to gain the lock’s access |
| hThread | the thread that currently owns the lock’s access (or undefined if no thread owns the lock’s access) |
| pAccessList | address of the list of threads waiting to gain the lock’s access, or NULL if none |
| pWaitList | address of the list of threads waiting for notification on the lock, or NULL if none |