If you can do this, your threaded code will be really efficient and it won't tie up valuable mutex locks.
如果能够做到这一点,线程代码将是非常高效的,并且不会占用宝贵的互斥对象锁。
Clearly, pushing data into the queue is akin to appending data to the list, and this operation must be guarded by mutex locks.
显然,把数据放到队列中就像是把数据添加到列表中,必须使用互斥锁保护这个操作。
While blocked, the managed task continues to hold any Shared resources it acquired during the course of its dispatch (for example, storage resources, task-level resources, and mutex locks).
在阻塞的情况下,托管任务将继续持有其在调度期间获得的所有共享资源(例如,存储资源、任务级别的资源和互斥锁定)。
应用推荐