System::Threading::Monitor::Enter メソッド

Monitor::Enter(const SharedPtr<Object>&) method

指定されたオブジェクトに対して排他ロックを取得します。

static void System::Threading::Monitor::Enter(const SharedPtr<Object> &obj)
パラメーター説明
objconst SharedPtr<Object>&モニターロックを取得する対象オブジェクト。

参照

Monitor::Enter(const System::SharedPtr<Object>&, bool&) method

指定されたオブジェクトに対して排他ロックを取得し、ロックが取得されたかを示す値を原子的に設定します。

static void System::Threading::Monitor::Enter(const System::SharedPtr<Object> &obj, bool &lockTaken)

参照