ランタイム
Mix::Semaphore Class Reference

セマフォクラス More...

#include <Semaphore.h>

Inheritance diagram for Mix::Semaphore:
Collaboration diagram for Mix::Semaphore:

Public Member Functions

 Semaphore (UInt32 initCount=0, UInt32 maxCount=1)
 コンストラクタ More...
 
 ~Semaphore (void)
 デストラクタ More...
 
Boolean Reduce (UInt32 timeOut=INFINITE)
 資源を一つ減らします More...
 
void Increase (UInt32 count=1)
 資源を指定された数だけ増やします More...
 
HANDLE GetHandle (void) const
 ハンドルを取得します More...
 
- Public Member Functions inherited from Mix::Noncopyable
 Noncopyable (void)
 コンストラクタ More...
 
virtual ~Noncopyable (void)
 デストラクタ More...
 

Detailed Description

セマフォクラス

Constructor & Destructor Documentation

Mix::Semaphore::Semaphore ( UInt32  initCount = 0,
UInt32  maxCount = 1 
)

コンストラクタ

Parameters
[in]initCount初期カウント数
[in]maxCount最大カウント数 指定した名所の同期オブジェクトが生成されていた場合、失敗します
Mix::Semaphore::~Semaphore ( void  )

デストラクタ

Member Function Documentation

Boolean Mix::Semaphore::Reduce ( UInt32  timeOut = INFINITE)

資源を一つ減らします

Parameters
[in]timeOutタイムアウト時間( 1/1000秒単位 )
INFINITE 無限に待つ
Returns
シグナル状態になった場合は True を返します
void Mix::Semaphore::Increase ( UInt32  count = 1)

資源を指定された数だけ増やします

Parameters
[in]count増やす数
HANDLE Mix::Semaphore::GetHandle ( void  ) const

ハンドルを取得します

Returns
ハンドルを返します

The documentation for this class was generated from the following file: