Method | Description | |
---|---|---|
Enter ( ) : void |
Enters the critical section. A thread cannot attempt to enter the spinlock if it already owns the spinlock.
|
|
Exit ( ) : void |
Exits the critical section. This can only be safely called from the same thread of execution after a corresponding Enter.
|
|
TryEnter ( ) : bool |
Attempts to enters the critical section. A thread cannot attempt to enter the spinlock if it already owns the spinlock.
|
Method | Description | |
---|---|---|
WaitBriefly ( int &attempt ) : void |