Classe System::Threading::Semaphore
Contenuti
[
Nascondere
]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
Metodi
| Metodo | Descrizione |
|---|---|
| Release() | Rilascia il lock sul semaforo. |
| Release(int) | Rilascia più lock sul semaforo. |
| virtual Reset() | Imposta il semaforo nello stato non segnalato. Non supportato. |
| Semaphore(int, int) | Informazioni RTTI. |
| Semaphore(int, int, const String&) | Crea un semaforo con nome. |
| Semaphore(int, int, const String&, bool&) | Crea un semaforo con nome. |
| virtual Set() | Imposta il semaforo nello stato segnalato. Non supportato. |
| WaitOne() override | Blocca il semaforo. Esegue attesa illimitata se necessario. |
| WaitOne(int) override | Blocca il semaforo. Esegue attesa se necessario. |
Campi
| Campo | Descrizione |
|---|---|
| static WaitTimeout | Valore speciale da restituire dalla funzione, altrimenti restituisce l’indice dell’oggetto segnalato nell’array, se il timeout scade e nulla segnala. |
Vedi anche
- Class WaitHandle
- Namespace System::Threading
- Library Aspose.Font for C++