## Monitor::Wait(const SharedPtr\<Object\>\&) method


يفرج القفل عن كائن ويُحجب الخيط الحالي حتى يستعيد القفل غير مُنفّذ.

```cpp
static bool System::Threading::Monitor::Wait(const SharedPtr<Object> &obj)
```


## انظر أيضًا

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [Monitor](../)
* Namespace [System::Threading](../../)
* Library [Aspose.Font for C++](../../../)
## Monitor::Wait(const SharedPtr\<Object\>\&, int32_t) method


يفرج القفل عن كائن ويُحجب الخيط الحالي حتى يستعيد القفل. إذا انقضت فترة المهلة المحددة، يدخل الخيط إلى طابور الجاهزية. غير مُنفّذ.

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


## انظر أيضًا

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [Monitor](../)
* Namespace [System::Threading](../../)
* Library [Aspose.Font for C++](../../../)
## Monitor::Wait(const SharedPtr\<Object\>\&, int32_t, bool) method


يفرج القفل عن كائن ويُحجب الخيط الحالي حتى يستعيد القفل. إذا انقضت فترة المهلة المحددة، يدخل الخيط إلى طابور الجاهزية. يمكن اختياريًا الخروج من نطاق المزامنة للسياق المتزامن قبل الانتظار وإعادة اكتساب النطاق بعد ذلك. غير مُنفّذ.

```cpp
static bool System::Threading::Monitor::Wait(const SharedPtr<Object> &obj, int32_t millisecondsTimeout, bool exitContext)
```


## انظر أيضًا

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [Monitor](../)
* Namespace [System::Threading](../../)
* Library [Aspose.Font for C++](../../../)
## Monitor::Wait(const SharedPtr\<Object\>\&, TimeSpan) method


يفرج القفل عن كائن ويُحجب الخيط الحالي حتى يستعيد القفل. إذا انقضت فترة المهلة المحددة، يدخل الخيط إلى طابور الجاهزية. غير مُنفّذ.

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


## انظر أيضًا

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [TimeSpan](../../../system/timespan/)
* Class [Monitor](../)
* Namespace [System::Threading](../../)
* Library [Aspose.Font for C++](../../../)
## Monitor::Wait(const SharedPtr\<Object\>\&, TimeSpan, bool) method


يفرج القفل عن كائن ويُحجب الخيط الحالي حتى يستعيد القفل. إذا انقضت فترة المهلة المحددة، يدخل الخيط إلى طابور الجاهزية. يمكن اختياريًا الخروج من نطاق المزامنة للسياق المتزامن قبل الانتظار وإعادة اكتساب النطاق بعد ذلك. غير مُنفّذ.

```cpp
static bool System::Threading::Monitor::Wait(const SharedPtr<Object> &obj, TimeSpan timeout, bool exitContext)
```


## انظر أيضًا

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [TimeSpan](../../../system/timespan/)
* Class [Monitor](../)
* Namespace [System::Threading](../../)
* Library [Aspose.Font for C++](../../../)
