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()सेमाफोर पर लॉक जारी करता है।
Release(int)सेमाफोर पर कई लॉक जारी करता है।
virtual Reset()सेमाफोर को गैर-सिग्नल्ड स्थिति में सेट करता है। समर्थित नहीं है।
Semaphore(int, int)RTTI जानकारी।
Semaphore(int, int, const String&)नामित सेमाफोर बनाता है।
Semaphore(int, int, const String&, bool&)नामित सेमाफोर बनाता है।
virtual Set()सेमाफोर को सिग्नल्ड स्थिति में सेट करता है। समर्थित नहीं है।
WaitOne() overrideसेमाफोर को लॉक करता है। यदि आवश्यक हो तो असीमित प्रतीक्षा करता है।
WaitOne(int) overrideसेमाफोर को लॉक करता है। यदि आवश्यक हो तो प्रतीक्षा करता है।

फ़ील्ड्स

फ़ील्डविवरण
static WaitTimeoutफ़ंक्शन द्वारा लौटाया जाने वाला विशेष मान, अन्यथा एरे में सिग्नल्ड ऑब्जेक्ट का इंडेक्स लौटाता है, यदि टाइमआउट समाप्त हो जाता है और कुछ भी सिग्नल नहीं करता।

संबंधित देखें