#include <icy/queue.h>Inherits:
RunnableQueue< T >Subclassed by:AsyncPacketQueue< PacketT >,PlanarAudioPacket >,PlanarVideoPacket >,AsyncPacketQueue< T >
AsyncQueue is a thread-based queue which receives packets from any thread source and dispatches them asynchronously.
This queue is useful for deferring load from operation critical system devices before performing long running tasks.
The thread will call the RunnableQueue's run() method to constantly flush outgoing packets until cancel() is called.
| Return | Name | Description |
|---|---|---|
AsyncQueue inline | #### Parameters | |
void | cancel virtual inline | Cancels the queue and joins the dispatch thread. |
inline
inline AsyncQueue(int limit)limit Maximum number of queued items before oldest are dropped.virtual inline
virtual inline void cancel(bool flag)Cancels the queue and joins the dispatch thread.
flag True to cancel, false to un-cancel.| Return | Name | Description |
|---|---|---|
Thread | _thread |
Thread _thread| Name | Description |
|---|---|
Queue |
RunnableQueue< T > Queue()