System::Threading::Semaphore::Semaphore constructor
内容
[
隐藏
]Semaphore::Semaphore(int, int) constructor
RTTI 信息。
System::Threading::Semaphore::Semaphore(int initialCount, int maximumCount)
| 参数 | 类型 | 描述 |
|---|---|---|
| initialCount | int | 活动条目的初始计数。 |
| maximumCount | int | 最大允许的条目计数。 |
备注
创建未命名信号量。
另见
- Class Semaphore
- Namespace System::Threading
- Library Aspose.Font for C++
Semaphore::Semaphore(int, int, const String&) constructor
创建具名信号量。
System::Threading::Semaphore::Semaphore(int initialCount, int maximumCount, const String &name)
| 参数 | 类型 | 描述 |
|---|---|---|
| initialCount | int | 活动条目的初始计数。 |
| maximumCount | int | 最大允许的条目计数。 |
| name | const String& | Semaphore 名称。 |
另见
- Class String
- Class Semaphore
- Namespace System::Threading
- Library Aspose.Font for C++
Semaphore::Semaphore(int, int, const String&, bool&) constructor
创建具名信号量。
System::Threading::Semaphore::Semaphore(int initialCount, int maximumCount, const String &name, bool &createdNew)
| 参数 | 类型 | 描述 |
|---|---|---|
| initialCount | int | 活动条目的初始计数。 |
| maximumCount | int | 最大允许的条目计数。 |
| name | const String& | Semaphore 名称。 |
| createdNew | bool& | 对变量的引用;如果信号量被创建则设为 true,如果使用了同名的已有信号量则设为 false。 |
另见
- Class String
- Class Semaphore
- Namespace System::Threading
- Library Aspose.Font for C++