Den::TWorkerMsg Class Reference

class Den::TWorkerMsg : public CommsFW::TCFMessage

Messages from Main Thread to Worker Threads (with Resp messages being responses sent back from Worker)

Constructor & Destructor Documentation

TWorkerMsg(TInt)

TWorkerMsg(TIntaCode)[inline]

Parameters

TInt aCode

Member Enumerations Documentation

Enum anonymous

Enumerators

KWorkerMessageCodeReserveSize = 15

Number of messages reserved for ESock internal usage. Currently bigger than the actual number of messages to provide space for more in the future. TWorkerMsg::TCode::ELastWorkerMsgCode

Enum TCode

Enumerators

EWorkerIntroduction = CommsFW::TCFCommsMessage::ECodePrivateFlag

This is the first message sent on a binding by any worker thread. It identifies the basics about the worker

EWorkerCookies

This is the second message sent on a binding by a worker. It identifies a standard set of cookies. In the future it's expected that the legacy transport will only be used for the above initial intro message which will carry a boot-strapping cookie and all other cookies will be identified directly to that one

EConfigurationComplete

This is sent from the main thread to all workers when a significant configuration event happens, as indicated in the message (eg the boot of modules)

ELoadTierMappings

This requests that the tier mappings are loaded from CommsDat. A worker can send it to the PitBoss and the PitBoss can send it to the tier resolver. In the latter case the tier resolver responds with TWorkerTierMappingsLoaded

ETierMappingsLoaded

The tier resolver reports through this that the previously requested load of the tier mappings is complete

ECleanupDeadPeer

This is sent from the PitBoss to a worker thread to notify that another worker has died and the receiver is expected to clean up any data structures/states related to that dead worker (if any). The receiver is expected to respond with a ECleanupDeadPeerResp message. TWorkerMsg::ECleanupDeadPeerResp

ECleanupDeadPeerResp

Response from worker to main thread that cleanup after dead peer has been completed. TWorkerMsg::ECleanupDeadPeer

EPlaneUnbound

Notification that a player role management responsibility has ended (eg a Player data flows signals the Player hosting subconnections when it unbinds, which can only happen when all flows have ceased dependency upon the sub-connections TWorkerMsg::TPlaneUnboundMsg

EWorkerIntroduction2

Carries data that did not fit into EWorkerIntroduction

EFactoryContainerIntroduction

Introduction message from main thread to workers to prompt objects to join their broker in the main thread

EBrokerIntroduction

Introduces a factory container object broker in the main thread to a worker thread

ELastWorkerMsgCode = CommsFW::TCFCommsMessage::ECodePrivateFlag + KWorkerMessageCodeReserveSize

Dummy trailer code to give reference point for starting a following sequence of message codes.