Classes Files

Wombat::MamaIo

More…

#include <MamaIo.h>

Public Functions

  Name
virtual ~MamaIo(void )
  MamaIo(void )
virtual void create(MamaQueue * queue, MamaIoCallback * action, uint32_t descriptor, mamaIoType ioType, void * closure =NULL)
virtual uint32_t getDescriptor(void ) const
virtual void destroy()
virtual void * getClosure(void ) const

Public Attributes

  Name
MamaIoImpl * mPimpl

Detailed Description

class Wombat::MamaIo;

A repeating IO. The callback will be repeatedly called at the specified interval until the IO is destroyed. See Mama::createMamaIo ().

The IO relies on the underlying middleware so its resolution is also dependent on the middleware.

Public Functions Documentation

function ~MamaIo

virtual ~MamaIo(
    void 
)

function MamaIo

MamaIo(
    void 
)

function create

virtual void create(
    MamaQueue * queue,
    MamaIoCallback * action,
    uint32_t descriptor,
    mamaIoType ioType,
    void * closure =NULL
)

Parameters:

  • queue The event queue for the io events. NULL specifies the Mama default queue.
  • action The callback to be invoked when an event occurs.
  • descriptor Wait for IO on this descriptor.
  • ioType Wait for occurrences of this type. See mama/io.h
  • closure The caller supplied closure.

Create an IO handler.

function getDescriptor

virtual uint32_t getDescriptor(
    void 
) const

function destroy

virtual void destroy()

function getClosure

virtual void * getClosure(
    void 
) const

Return: the closure.

Return the closure for the IO.

Public Attributes Documentation

variable mPimpl

MamaIoImpl * mPimpl;

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