GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GU_PRODCONS_CONSUMER (3)

NAME

gu::prodcons::Consumer - Consumer interface.

CONTENTS

Synopsis

SYNOPSIS

#include <gu_prodcons.hpp>

    Public Member Functions

    Consumer ()
Default constructor.     virtual ~Consumer ()
Default destructor.     void queue_and_wait (const Message &msg, Message *ack)
Queue message and wait for ack.

    Protected Member Functions

    const Message * get_next_msg ()
Get the first message from the message queue.     void return_ack (const Message &msg)
Return ack message for the producer.     virtual void notify ()=0
Virtual method to notify consumer about queued message.

Detailed Description

Consumer interface.

Member Function Documentation

const Message* gu::prodcons::Consumer::get_next_msg () [protected]

Get the first message from the message queue. Get the first message from the message queue. Note that this method does not remove the first message from message queue.

Returns:

Next message from the message queue

void gu::prodcons::Consumer::queue_and_wait (const Message & msg, Message * ack)

Queue message and wait for ack.

Parameters:

msg Message to be queued
ack Ack returned by consumer

void gu::prodcons::Consumer::return_ack (const Message & msg) [protected]

Return ack message for the producer. Return ack message for the producer. Note that this method pops the first message from the message queue.

Parameters:

msg Ack message corresponding the current head of mque

Author

Generated automatically by Doxygen for GCS from the source code.

Search for    or go to Top of page |  Section 3 |  Main Index


Version 0.2.3 GU::PRODCONS::CONSUMER (3) Sun Apr 3 2016

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.