RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCriticalSection.Enter Method

Blocks other threads when the calling thread enters a thread-sensitive section.

Pascal
procedure Enter;
C++
__fastcall Enter();

Call Enter to block all other threads from entering code protected by this critical section until the Leave or Release method is called. Enter calls the Acquire method to bind the critical section to the calling thread. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!