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 | फ़ंक्शन द्वारा लौटाया जाने वाला विशेष मान, अन्यथा एरे में सिग्नल्ड ऑब्जेक्ट का इंडेक्स लौटाता है, यदि टाइमआउट समाप्त हो जाता है और कुछ भी सिग्नल नहीं करता। |
संबंधित देखें
- Class WaitHandle
- Namespace System::Threading
- Library Aspose.Page for C++