다음을 통해 공유


lock 클래스

This class automates taking a lock for synchronizing access to an object from multiple threads. When constructed it acquires the lock and when destroyed it releases the lock.

ref class lock;

설명

lock is available only for CLR objects and can only be used in CLR code.

Internally, the lock class uses Monitor to synchronize access. See this topic for more detailed information on synchronization.

요구 사항

Header file <msclr\lock.h>

Namespace msclr

참고 항목

참조

잠금

기타 리소스

lock 멤버