AERA
Public Member Functions | List of all members
core::PipeNN< T, _S > Class Template Reference
Inheritance diagram for core::PipeNN< T, _S >:
core::Pipe11< T, _S > core::Semaphore core::CriticalSection

Public Member Functions

void clear ()
 
void push (T &t)
 
pop (bool waitForItem=true)
 
- Public Member Functions inherited from core::Pipe11< T, _S >
void clear ()
 
void push (T &t)
 
pop ()
 
- Public Member Functions inherited from core::Semaphore
 Semaphore (uint32 initialCount, uint32 maxCount)
 
bool acquire (uint32 timeout=Infinite)
 
void release (uint32 count=1)
 
void reset ()
 
- Public Member Functions inherited from core::CriticalSection
void enter ()
 
void leave ()
 

Additional Inherited Members

- Protected Member Functions inherited from core::Pipe11< T, _S >
void _clear ()
 
_pop ()
 
- Static Protected Attributes inherited from core::Semaphore
static const uint32 Infinite
 

Detailed Description

template<typename T, uint32 _S>
class core::PipeNN< T, _S >

Definition at line 150 of file pipe.h.

Member Function Documentation

◆ pop()

template<typename T , uint32 _S>
T core::PipeNN< T, _S >::pop ( bool  waitForItem = true)

Pop the head item.

Parameters
waitForItem(optional) If true and the pipe is empty, block until another thread adds an item with push(). If false and the pipe is empty, return NULL immediately.If omitted, then wait for an item.
Returns
The popped item, or NULL if waitForItem is false and the pipe is empty.

The documentation for this class was generated from the following file: