|
PonyPlayer
|
联动队列. 用于单生产者多队列, 单消费者通信. 更多...
#include <twins_queue.hpp>
Public 成员函数 | |
| TwinsBlockQueue (std::string name, size_t prefer) | |
| ~TwinsBlockQueue () | |
| TwinsBlockQueue< T > * | twins (const std::string &name, size_t prefer) |
| void | setEnable (bool b) |
| bool | isEnable () const |
| void | close () |
| void | clear (const std::function< void(T)> &freeFunc) |
| void | open () |
| bool | push (const T item) |
| template<typename R > | |
| R | viewFront (const std::function< R(T)> &func) |
| T | remove (bool protectNull) |
| int | skip (const std::function< bool(T)> &predicate, const std::function< void(T)> &freeFunc) |
联动队列. 用于单生产者多队列, 单消费者通信.
| T |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |