MTQueue< T > Class Template Reference
A multiple-producer, multiple-consumer, thread-safe queue implemented using SystemC primitives The MTQueue is used as the input buffer in the NPU modules. More...
#include <MTQueue.h>


Public Member Functions | |
MTQueue () | |
Construct a MTQueue. | |
T | pop () |
Pop the top element from the MTQueue and return a copy. More... | |
void | pop (T &item) |
Pop the top element from the MTQueue and copy it into the output argument. More... | |
void | push (const T &item) |
Push an item onto the MTQueue. More... | |
void | push (T &&item) |
Push an item onto the MTQueue (explicit move) More... | |
void | size (int &qsize) |
Detailed Description
template<typename T>
class MTQueue< T >
A multiple-producer, multiple-consumer, thread-safe queue implemented using SystemC primitives The MTQueue is used as the input buffer in the NPU modules.
Member Function Documentation
template<typename T>
|
inline |
Pop the top element from the MTQueue and return a copy.
- Returns
- Copy of the top element
template<typename T>
|
inline |
Pop the top element from the MTQueue and copy it into the output argument.
- Parameters
-
Output argument
template<typename T>
|
inline |
template<typename T>
|
inline |
Push an item onto the MTQueue (explicit move)
- Parameters
-
Item to move
The documentation for this class was generated from the following file:
- /home/lemniscate/workspace/PFPSim/pfpsim/core/MTQueue.h