Delen via


critical_section::~critical_section Destructor

Destroys a critical section.

~critical_section();

Remarks

It is expected that the lock is no longer held when the destructor runs. Allowing the critical section to destruct with the lock still held results in undefined behavior.

Requirements

Header: concrt.h

Namespace: concurrency

See Also

Reference

critical_section Class