หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
This topic provides an example of how to create a task queue. Simply call XTaskQueueCreate, pass in the modes for each port, and then save the created handle.
XTaskQueueHandle taskQueue1;
HRESULT hr = XTaskQueueCreate(
XTaskQueueDispatchMode::ThreadPool,
XTaskQueueDispatchMode::Manual,
&taskQueue1);
XTaskQueueHandle taskQueue2;
hr = XTaskQueueCreate(
XTaskQueueDispatchMode::Immediate,
XTaskQueueDispatchMode::SerializedThreadPool,
&taskQueue2);
If there isn't an error with the return code, the task queue is now
represented by the returned XTaskQueueHandle.