A lock that can be used in a parallel region. Also contains instance methods for locking. Available methods are Set, Unset, and Test.
More...
A lock that can be used in a parallel region. Also contains instance methods for locking. Available methods are Set, Unset, and Test.
◆ Lock()
◆ Set()
Stalls the thread until the lock is set.
◆ Test()
Attempts to set the lock. Does not stall the thread.
- Returns
- True if the lock was set, false otherwise.
◆ Unset()
void DotMP.Lock.Unset |
( |
| ) |
|
|
inline |
◆ _lock
volatile int DotMP.Lock._lock |
|
private |
The int acting as the lock.
The documentation for this class was generated from the following file: