Torque3D Documentation / _generateds / AsyncPacketBufferedInputStream::PacketReadItem

AsyncPacketBufferedInputStream::PacketReadItem

Engine/source/platform/async/asyncPacketStream.h

Asynchronous work item for reading a packet from the source stream.

More...

Protected Types

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

Execute the actions associated with this work item.

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