System::Threading::ThreadPoolImpl::QueueUserWorkItem 方法
ThreadPoolImpl::QueueUserWorkItem method
向队列添加工作项。
bool System::Threading::ThreadPoolImpl::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 ThreadPoolImpl
- Namespace System::Threading
- Library Aspose.Font for C++