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

Function empty

src/UtilsCtrl/ThreadPool/Queue/UAtomicQueue.h:118–121  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

116 * @return
117 */
118 [[nodiscard]] CBool empty() {
119 CGRAPH_LOCK_GUARD lk(mutex_);
120 return queue_.empty();
121 }
122
123 CGRAPH_NO_ALLOWED_COPY(UAtomicQueue)
124

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected