Método System::Threading::Monitor::TryEnter

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

Intenta adquirir un bloqueo exclusivo en el objeto especificado. No implementado.

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

Ver también

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

Intenta, durante el número especificado de milisegundos, adquirir un bloqueo exclusivo en el objeto especificado. No implementado.

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

Ver también

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

Intenta, durante el tiempo especificado, adquirir un bloqueo exclusivo en el objeto especificado. No implementado.

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

Ver también

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

Intenta adquirir un bloqueo exclusivo en el objeto especificado y establece de forma atómica un valor que indica si el bloqueo fue tomado.

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

Ver también

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

Intenta, durante el tiempo especificado, adquirir un bloqueo exclusivo en el objeto especificado y establece de forma atómica un valor que indica si se tomó el bloqueo.

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

Ver también

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

Intenta, durante el tiempo especificado, adquirir un bloqueo exclusivo en el objeto especificado y establece de forma atómica un valor que indica si se tomó el bloqueo.

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

Ver también