#include <RunQueue.h>
Classes | |
| struct | Elem |
Public Member Functions | |
| bool | Empty () const |
| void | Flush () |
| Work | PopBack () |
| unsigned | PopBackHalf (std::vector< Work > *result) |
| Work | PopFront () |
| Work | PushBack (Work w) |
| Work | PushFront (Work w) |
| RunQueue () | |
| unsigned | Size () const |
| ~RunQueue () | |
Private Types | |
| enum | { kEmpty, kBusy, kReady } |
Private Member Functions | |
| EIGEN_ALWAYS_INLINE unsigned | CalculateSize (unsigned front, unsigned back) const |
| void | operator= (const RunQueue &)=delete |
| RunQueue (const RunQueue &)=delete | |
| template<bool NeedSizeEstimate> | |
| unsigned | SizeOrNotEmpty () const |
Private Attributes | |
| Elem | array_ [kSize] |
| std::atomic< unsigned > | back_ |
| std::atomic< unsigned > | front_ |
| std::mutex | mutex_ |
Static Private Attributes | |
| static const unsigned | kMask = kSize - 1 |
| static const unsigned | kMask2 = (kSize << 1) - 1 |
Definition at line 38 of file RunQueue.h.
|
private |
| Enumerator | |
|---|---|
| kEmpty | |
| kBusy | |
| kReady | |
Definition at line 170 of file RunQueue.h.
|
inline |
Definition at line 40 of file RunQueue.h.
|
inline |
Definition at line 49 of file RunQueue.h.
|
privatedelete |
|
inlineprivate |
Definition at line 218 of file RunQueue.h.
|
inline |
Definition at line 154 of file RunQueue.h.
|
inline |
Definition at line 157 of file RunQueue.h.
|
privatedelete |
|
inline |
Definition at line 100 of file RunQueue.h.
|
inline |
Definition at line 117 of file RunQueue.h.
|
inline |
Definition at line 68 of file RunQueue.h.
|
inline |
Definition at line 84 of file RunQueue.h.
|
inline |
Definition at line 53 of file RunQueue.h.
|
inline |
Definition at line 150 of file RunQueue.h.
|
inlineprivate |
Definition at line 191 of file RunQueue.h.
|
private |
Definition at line 185 of file RunQueue.h.
|
private |
Definition at line 184 of file RunQueue.h.
|
private |
Definition at line 183 of file RunQueue.h.
|
staticprivate |
Definition at line 164 of file RunQueue.h.
|
staticprivate |
Definition at line 165 of file RunQueue.h.
|
private |
Definition at line 175 of file RunQueue.h.