메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
WaitBriefly ( int &attempt ) : void |