Compartir a través de


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
);

Parameters

  • _Critical_section
    The critical section to lock.

Requirements

Header: concrt.h

Namespace: concurrency

See Also

Reference

critical_section::scoped_lock Class

critical_section Class