MCPcopy Create free account
hub / github.com/TinyMPC/TinyMPC / RunQueue

Method RunQueue

include/Eigen/Eigen/src/ThreadPool/RunQueue.h:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40class RunQueue {
41 public:
42 RunQueue() : front_(0), back_(0) {
43 // require power-of-two for fast masking
44 eigen_plain_assert((kSize & (kSize - 1)) == 0);
45 eigen_plain_assert(kSize > 2); // why would you do this?
46 eigen_plain_assert(kSize <= (64 << 10)); // leave enough space for counter
47 for (unsigned i = 0; i < kSize; i++)
48 array_[i].state.store(kEmpty, std::memory_order_relaxed);
49 }
50
51 ~RunQueue() { eigen_plain_assert(Size() == 0); }
52

Callers

nothing calls this directly

Calls 1

storeMethod · 0.45

Tested by

no test coverage detected