System::Threading::ThreadPool::QueueUserWorkItem 方法
ThreadPool::QueueUserWorkItem(WaitCallback) method
将工作项放入带有无参数回调的队列。
static bool System::Threading::ThreadPool::QueueUserWorkItem(WaitCallback callback)
| Parameter | Type | 描述 |
|---|---|---|
| 回调 | WaitCallback | 回调函数用于作为作业。 |
ReturnValue
始终返回 true。
另见
- Typedef WaitCallback
- Class ThreadPool
- Namespace System::Threading
- Library Aspose.Page for C++
ThreadPool::QueueUserWorkItem(WaitCallback, const System::SharedPtr<System::Object>&) method
将工作项放入带有无参数回调的队列。
static bool System::Threading::ThreadPool::QueueUserWorkItem(WaitCallback callback, const System::SharedPtr<System::Object> &state)
| Parameter | Type | 描述 |
|---|---|---|
| 回调 | WaitCallback | 回调函数用于作为作业。 |
| 状态 | const System::SharedPtr<System::Object>& | 作业函数参数。 |
ReturnValue
始终返回 true。
另见
- Typedef WaitCallback
- Typedef SharedPtr
- Class Object
- Class ThreadPool
- Namespace System::Threading
- Library Aspose.Page for C++