MCPcopy Create free account
hub / github.com/apache/brpc / QueueUser

Class QueueUser

test/thread_collision_warner_unittest.cc:149–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 };
148
149 class QueueUser : public butil::DelegateSimpleThread::Delegate {
150 public:
151 explicit QueueUser(NonThreadSafeQueue& queue)
152 : queue_(queue) {}
153
154 virtual void Run() OVERRIDE {
155 queue_.push(0);
156 queue_.pop();
157 }
158
159 private:
160 NonThreadSafeQueue& queue_;
161 };
162
163 AssertReporter* local_reporter = new AssertReporter();
164

Callers

nothing calls this directly

Calls 3

barMethod · 0.80
pushMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected