MCPcopy Create free account
hub / github.com/ChunelFeng/CThreadPool / empty

Function empty

src/UtilsCtrl/ThreadPool/Queue/UAtomicPriorityQueue.h:77–80  ·  view source on GitHub ↗

* 判定队列是否为空 * @return */

Source from the content-addressed store, hash-verified

75 * @return
76 */
77 [[nodiscard]] CBool empty() {
78 CGRAPH_LOCK_GUARD lk(mutex_);
79 return priority_queue_.empty();
80 }
81
82 CGRAPH_NO_ALLOWED_COPY(UAtomicPriorityQueue)
83

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected