次の方法で共有


critical_section::native_handle Method

Returns a platform specific native handle, if one exists.

native_handle_type native_handle();

Return Value

A reference to the critical section.

Remarks

A critical_section object is not associated with a platform specific native handle for the Windows operating system. The method simply returns a reference to the object itself.

Requirements

Header: concrt.h

Namespace: concurrency

See Also

Reference

critical_section Class