System::Threading::Semaphore kelas
isi
[
bersembunyi
]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
Metode
| Metode | Deskripsi |
|---|---|
| Release() | Melepaskan kunci pada semaphore. |
| Release(int) | Melepaskan beberapa kunci pada semaphore. |
| virtual Reset() | Mengatur semaphore ke keadaan tidak tersinyal. Tidak didukung. |
| Semaphore(int, int) | Informasi RTTI. |
| Semaphore(int, int, const String&) | Membuat semaphore bernama. |
| Semaphore(int, int, const String&, bool&) | Membuat semaphore bernama. |
| virtual Set() | Mengatur semaphore ke keadaan tersinyal. Tidak didukung. |
| WaitOne() override | Mengunci semaphore. Melakukan penunggu tak terbatas jika diperlukan. |
| WaitOne(int) override | Mengunci semaphore. Melakukan penunggu jika diperlukan. |
Bidang
| Bidang | Deskripsi |
|---|---|
| static WaitTimeout | Nilai khusus yang akan dikembalikan oleh fungsi, selain mengembalikan indeks objek yang tersinyal dalam array, jika batas waktu terlampaui dan tidak ada yang menyinyal. |
Lihat Juga
- Class WaitHandle
- Namespace System::Threading
- Library Aspose.Page for C++