## Semaphore class


[Semaphore](./) implementation. Objects of this class should only be allocated using [System::MakeObject()](../../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](../../system/smartptr/) pointer and use this pointer to pass it to functions as argument.

```cpp
class Semaphore : public System::Threading::WaitHandle
```

## Yöntemler

| Yöntem | Açıklama |
| --- | --- |
| [Release](./release/)() | Semafor üzerindeki kilidi serbest bırakır. |
| [Release](./release/)(int) | Semafor üzerindeki birden fazla kilidi serbest bırakır. |
| virtual [Reset](./reset/)() | Semaforu sinyal verilmemiş duruma ayarlar. Desteklenmez. |
| [Semaphore](./semaphore/)(int, int) | RTTI bilgisi. |
| [Semaphore](./semaphore/)(int, int, const String\&) | Adlandırılmış semafor oluşturur. |
| [Semaphore](./semaphore/)(int, int, const String\&, bool\&) | Adlandırılmış semafor oluşturur. |
| virtual [Set](./set/)() | Semaforu sinyal verilmiş duruma ayarlar. Desteklenmez. |
| [WaitOne](./waitone/)() override | Semaforu kilitler. Gerekirse sınırsız bekleme yapar. |
| [WaitOne](./waitone/)(int) override | Semaforu kilitler. Gerekirse bekleme yapar. |
## Alanlar

| Alan | Açıklama |
| --- | --- |
| static [WaitTimeout](../waithandle/waittimeout/) | Fonksiyon tarafından döndürülecek özel bir değer; aksi takdirde zaman aşımı geçerse ve hiçbir şey sinyal göndermezse, dizideki sinyal verilen nesnenin indeksini döndürür. |
## Ayrıca Bakınız

* Class [WaitHandle](../waithandle/)
* Namespace [System::Threading](../)
* Library [Aspose.Page for C++](../../)
