|
|
|
|
CriticalSectionEnd (Function) In french: SectionCritiqueFin Marks the end of critical section: the code will be run by another thread.
// Use of a named critical section CriticalSectionStart("MySection") // Two threads will not be able to run this code at the same time ... CriticalSectionEnd("MySection")
Syntax
Ending a named critical section on a code section Hide the details
CriticalSectionEnd([<Section name>])
<Section name>: Optional character string Identifies the critical section. Remarks Miscellaneous - For more details on critical sections, see Managing the critical sections.
- If a thread is destroyed while it is found in a critical section, the critical section is automatically freed.
- A single thread is allowed in all the sections with the same name.
- If sections use a different name, a thread can run the code of one section while another thread runs the code of another section.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|