MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / Clear

Method Clear

paddle/fluid/framework/blocking_queue.h:114–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 }
113
114 void Clear() {
115 std::lock_guard<std::mutex> lock(mutex_);
116 std::deque<T>().swap(q_);
117 }
118
119 private:
120 std::mutex mutex_;

Callers

nothing calls this directly

Calls 1

swapMethod · 0.45

Tested by

no test coverage detected