The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

critical_section::scoped_lock::scoped_lock Constructor


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


The critical section to lock.


Header: concrt.h

Namespace: concurrency