System::Threading::Semaphore 클래스

Semaphore class

Semaphore implementation. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class Semaphore : public System::Threading::WaitHandle

메서드

메서드설명
Release()세마포어의 잠금을 해제합니다.
Release(int)세마포어의 여러 잠금을 해제합니다.
virtual Reset()세마포어를 비신호 상태로 설정합니다. 지원되지 않습니다.
Semaphore(int, int)RTTI 정보.
Semaphore(int, int, const String&)이름이 지정된 세마포어를 생성합니다.
Semaphore(int, int, const String&, bool&)이름이 지정된 세마포어를 생성합니다.
virtual Set()세마포어를 신호 상태로 설정합니다. 지원되지 않습니다.
WaitOne() override세마포어를 잠급니다. 필요시 무제한 대기를 수행합니다.
WaitOne(int) override세마포어를 잠급니다. 필요시 대기를 수행합니다.

필드

필드설명
static WaitTimeout함수가 반환할 특수 값이며, 타임아웃이 초과되고 아무 것도 신호를 보내지 않을 경우 배열에서 신호된 객체의 인덱스를 반환합니다.

또 보기