فئة System::Threading::Semaphore

Semaphore class

Semaphore implementation. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class Semaphore : public System::Threading::WaitHandle

الطرق

طريقةالوصف
Release()يفرج القفل عن الـ Semaphore.
Release(int)يفرج عدة أقفال عن الـ Semaphore.
virtual Reset()يضبط الـ Semaphore إلى حالة غير مُشار إليها. غير مدعوم.
Semaphore(int, int)معلومات RTTI.
Semaphore(int, int, const String&)ينشئ Semaphore مسمى.
Semaphore(int, int, const String&, bool&)ينشئ Semaphore مسمى.
virtual Set()يضبط الـ Semaphore إلى حالة مُشار إليها. غير مدعوم.
WaitOne() overrideيقفل الـ Semaphore. ينفذ انتظارًا غير محدود إذا لزم الأمر.
WaitOne(int) overrideيقفل الـ Semaphore. ينفذ انتظارًا إذا لزم الأمر.

الحقول

حقلالوصف
static WaitTimeoutقيمة خاصة تُعاد من الدالة، وإلا تُعيد فهرس الكائن المُشار إليه في المصفوفة إذا تجاوز المهلة ولم يُشِر شيء.

انظر أيضًا