Export (0) Print
Expand All

critical_section Class

A non-reentrant mutex which is explicitly aware of the Concurrency Runtime.

class critical_section;

Name

Description

native_handle_type

A reference to a critical_section object.

Name

Description

critical_section::scoped_lock Class

An exception safe RAII wrapper for a critical_section object.

Name

Description

critical_section::critical_section Constructor

Constructs a new critical section.

critical_section::~critical_section Destructor

Destroys a critical section.

Name

Description

critical_section::lock Method

Acquires this critical section.

critical_section::native_handle Method

Returns a platform specific native handle, if one exists.

critical_section::try_lock Method

Tries to acquire the lock without blocking.

critical_section::try_lock_for Method

Tries to acquire the lock without blocking for a specific number of milliseconds.

critical_section::unlock Method

Unlocks the critical section.

critical_section

Header: concrt.h

Namespace: concurrency

Show:
© 2014 Microsoft