System::Threading::Monitor::TryEnter metodo

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

Tenta di acquisire un lock esclusivo sull’oggetto specificato. Non implementato.

static bool System::Threading::Monitor::TryEnter(const SharedPtr<Object> &obj)

Vedi anche

Monitor::TryEnter(const SharedPtr<Object>&, int32_t) method

Tenta, per il numero specificato di millisecondi, di acquisire un lock esclusivo sull’oggetto specificato. Non implementato.

static bool System::Threading::Monitor::TryEnter(const SharedPtr<Object> &obj, int32_t millisecondsTimeout)

Vedi anche

Monitor::TryEnter(const SharedPtr<Object>&, TimeSpan) method

Tenta, per la quantità di tempo specificata, di acquisire un lock esclusivo sull’oggetto specificato. Non implementato.

static bool System::Threading::Monitor::TryEnter(const SharedPtr<Object> &obj, TimeSpan timeout)

Vedi anche

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

Tenta di acquisire un lock esclusivo sull’oggetto specificato e imposta in modo atomico un valore che indica se il lock è stato acquisito.

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

Vedi anche

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

Tenta, per la quantità di tempo specificata, di acquisire un lock esclusivo sull’oggetto specificato e imposta in modo atomico un valore che indica se il lock è stato acquisito.

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

Vedi anche

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

Tenta, per la quantità di tempo specificata, di acquisire un lock esclusivo sull’oggetto specificato e imposta in modo atomico un valore che indica se il lock è stato acquisito.

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

Vedi anche