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

Method push

native/cocos/base/ThreadPool.h:153–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 class ThreadSafeQueue {
152 public:
153 bool push(T const &value) {
154 std::unique_lock<std::mutex> lock(this->mutex);
155 this->q.push(value);
156 return true;
157 }
158
159 // deletes the retrieved element, do not use for non integral types
160 bool pop(T &v) {

Callers 2

pushTaskMethod · 0.45
stopTasksByTypeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected