Enter the critical section (same as locking a mutex): if another thread has already entered it, this call will block until the other thread calls Leave().
Enter the critical section (same as locking a mutex): if another thread has already entered it, this call will block until the other thread calls Leave().
Leave
Leave ( )
Leave the critical section allowing other threads use the global data protected by it.
TryEnter
boolTryEnter ( )
Try to enter the critical section (same as trying to lock a mutex).