AsyncPacketBufferedInputStream::PacketReadItem
Engine/source/platform/async/asyncPacketStream.h
Asynchronous work item for reading a packet from the source stream.
Public Types
AsyncReadItem< typename AsyncPacketBufferedInputStream< Stream, Packet >::SourceElementType, StreamType >
Parent
Protected Types
ThreadSafeRef< AsyncPacketBufferedInputStream< Stream, Packet > >
AsyncPacketStreamPtr
Protected Attributes
The issueing async state.
The packet that receives the data.
Public Functions
PacketReadItem(const ThreadSafeRef< AsyncPacketBufferedInputStream< Stream, Packet > > & asyncStream, PacketType * packet, U32 numElements, ThreadPool::Context * context)
Protected Functions
Called when the item has been cancelled.
Detailed Description
Asynchronous work item for reading a packet from the source stream.
Public Types
typedef AsyncReadItem< typename AsyncPacketBufferedInputStream< Stream, Packet >::SourceElementType, StreamType > Parent
Protected Types
typedef ThreadSafeRef< AsyncPacketBufferedInputStream< Stream, Packet > > AsyncPacketStreamPtr
Protected Attributes
AsyncPacketStreamPtr mAsyncStream
The issueing async state.
PacketType * mPacket
The packet that receives the data.
Public Functions
PacketReadItem(const ThreadSafeRef< AsyncPacketBufferedInputStream< Stream, Packet > > & asyncStream, PacketType * packet, U32 numElements, ThreadPool::Context * context)
Protected Functions
execute()
Reimplemented from: AsyncReadItem
onCancelled()
Reimplemented from: ThreadPool::WorkItem