Base module
AsyncQueue
AsyncQueue is a thread-based queue which receives packets from any thread source and dispatches them asynchronously.
AsyncQueue
#include <icy/queue.h>Inherits:
RunnableQueue< T >Subclassed by:AsyncPacketQueue< PacketT >,PlanarAudioPacket >,AsyncPacketQueue< VisionFramePacket >,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.
Public Methods
| Return | Name | Description |
|---|---|---|
AsyncQueue inline | #### Parameters | |
void | cancel virtual inline | Cancels the queue and joins the dispatch thread. |
AsyncQueue
inline
inline AsyncQueue(int limit)Parameters
limitMaximum number of queued items before oldest are dropped.
cancel
virtual inline
virtual inline void cancel(bool flag)Cancels the queue and joins the dispatch thread.
Parameters
flagTrue to cancel, false to un-cancel.
Protected Attributes
| Return | Name | Description |
|---|---|---|
Thread | _thread |
_thread
Thread _threadPublic Types
| Name | Description |
|---|---|
Queue |
Queue
RunnableQueue< T > Queue()