MCPcopy Create free account
hub / github.com/cocos/cocos-engine / empty

Method empty

native/cocos/base/ThreadPool.h:169–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167 }
168
169 bool empty() const {
170 auto thiz = const_cast<ThreadSafeQueue *>(this);
171 std::unique_lock<std::mutex> lock(thiz->mutex);
172 return this->q.empty();
173 }
174
175 size_t size() const {
176 auto thiz = const_cast<ThreadSafeQueue *>(this);

Callers 15

scheduleMethod · 0.45
unscheduleMethod · 0.45
isScheduledMethod · 0.45
updateMethod · 0.45
utfConvertFunction · 0.45
replaceMethod · 0.45
pushTaskMethod · 0.45
stopTasksByTypeMethod · 0.45
popMethod · 0.45
emptyFunction · 0.45
keysFunction · 0.45

Calls

no outgoing calls

Tested by 15

nativevalue_to_seFunction · 0.36
websockets_data_cbFunction · 0.36
message_complete_cbFunction · 0.36
UrlFunction · 0.36
ScriptPathFunction · 0.36
AppendMessageMethod · 0.36
DispatchMessagesMethod · 0.36
GetTargetTitleMethod · 0.36
SetTargetIdMethod · 0.36