ESM Module API Optional Lock Information. More...
Data Fields | |
| mf_uns32 | Version |
| Structure version, SafESM_API_LOCK_INFO_VER (1). | |
| mf_uns32 | Type |
| Lock type, ESM API Locking Type. | |
ESM Module API Optional Lock Information.
This is an optional structure that can be passed to EsmLockEnq() and EsmLockDeq(). If a given lock is acquired with EsmLockEnq using a lock information structure, the same information must be supplied to the corresponding EsmLockDeq call.
Currently, this is useful for intra-process locks - locks to protect resources from simultaneous use by other threads in the same process, but not from other processes (because the resources are only available to the calling process). For such a lock, use a SafLockInfo structure with the Type field set to SafESM_API_LOCK_LOCAL (1). These locks have better performance for ESM modules running in the CAS environment.