Classes Files

Wombat::MamaDispatcher

More…

#include <MamaDispatcher.h>

Public Functions

  Name
  ~MamaDispatcher(void )
  MamaDispatcher(void )
void create(MamaQueue * queue)
void destroy(void )

Detailed Description

class Wombat::MamaDispatcher;

The dispatcher dispatches events from a queue until it is destroyed or MamaQueue->stopDispatch () is called.

Public Functions Documentation

function ~MamaDispatcher

~MamaDispatcher(
    void 
)

function MamaDispatcher

MamaDispatcher(
    void 
)

function create

void create(
    MamaQueue * queue
)

Parameters:

Create a mamaDispatcher. The dispatcher spawns a thread to dispatch events from a queue. It will continue to dispatch events until it is destroyed or mamaQueue_stopDispatch is called.

Only a single dispatcher can be created for a given queue. Attempting to create multiple dispatchers for a queue will result in and error. Dispatching message from a single queue with multiple threads results in messages arriving out of order and sequence number gaps for market data subscriptions.

function destroy

void destroy(
    void 
)

Destroy the dispatcher;


Updated on 2023-03-31 at 15:29:25 +0100