#include <coroutine.h>
Public Member Functions | |
Channel () | |
Channel (routine_t id) | |
void | clear () |
void | consumer (routine_t id) |
bool | empty () |
Type | pop () |
void | push (const Type &obj) |
void | push (Type &&obj) |
size_t | size () |
void | touch () |
Private Attributes | |
std::list< Type > | _list |
routine_t | _taker |
Definition at line 398 of file coroutine.h.
coroutine::Channel< Type >::Channel | ( | ) | [inline] |
Definition at line 401 of file coroutine.h.
coroutine::Channel< Type >::Channel | ( | routine_t | id | ) | [inline] |
Definition at line 406 of file coroutine.h.
void coroutine::Channel< Type >::clear | ( | ) | [inline] |
Definition at line 443 of file coroutine.h.
void coroutine::Channel< Type >::consumer | ( | routine_t | id | ) | [inline] |
Definition at line 411 of file coroutine.h.
bool coroutine::Channel< Type >::empty | ( | ) | [inline] |
Definition at line 459 of file coroutine.h.
Type coroutine::Channel< Type >::pop | ( | ) | [inline] |
Definition at line 430 of file coroutine.h.
void coroutine::Channel< Type >::push | ( | const Type & | obj | ) | [inline] |
Definition at line 416 of file coroutine.h.
void coroutine::Channel< Type >::push | ( | Type && | obj | ) | [inline] |
Definition at line 423 of file coroutine.h.
size_t coroutine::Channel< Type >::size | ( | ) | [inline] |
Definition at line 454 of file coroutine.h.
void coroutine::Channel< Type >::touch | ( | ) | [inline] |
Definition at line 448 of file coroutine.h.
std::list<Type> coroutine::Channel< Type >::_list [private] |
Definition at line 465 of file coroutine.h.
routine_t coroutine::Channel< Type >::_taker [private] |
Definition at line 466 of file coroutine.h.