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