Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Constructs a scoped_lock object and acquires the critical_section object passed in the _Critical_section parameter. If the critical section is held by another thread, this call will block.
explicit _CRTIMP scoped_lock(
critical_section& _Critical_section
);
Parameters
- _Critical_section
The critical section to lock.
Requirements
Header: concrt.h
Namespace: Concurrency