HDK
|
#include <UT_NetMessage.h>
Public Member Functions | |
UT_NetBarrier (const UT_StringHolder &trackeraddr, int trackerport, const UT_StringHolder &jobname) | |
void | setValue (int val) |
void | waitValue (int val) |
int | incrementValue (int defaultval) |
Protected Member Functions | |
void | sendTrackerMessage (const char *msg, int value) |
Creates and posts a message for the tracker. More... | |
void | blockUntilComplete () |
bool | pumpData (int timeoutms) |
Protected Attributes | |
UT_NetMessagePump | myPump |
UT_NetSocketPtr | myToSelf |
bool | myError |
int | myBarrierValue |
UT_StringHolder | myTrackerAddr |
int | myTrackerPort |
UT_StringHolder | myJobName |
Very similar to UT_NetExchange, using the same tracker. However, it is meant for creating producer/consumer queues where the data is transmitted OOB (ie, on shared disk resource) The producer can call setValue() to indicate how far it has completed. The consumer can invoke waitValue() to idle until the setValue is equal or greater than the waitValue.
These calls will all block until success, error, or interrupt.
Definition at line 637 of file UT_NetMessage.h.
UT_NetBarrier::UT_NetBarrier | ( | const UT_StringHolder & | trackeraddr, |
int | trackerport, | ||
const UT_StringHolder & | jobname | ||
) |
|
protected |
A simplified method for running the message pump until the system errors or is interrupted.
Returns current value of the barrier and then increments the barrier's value. Blocks until the tracker responds.
|
protected |
Returns true until the barrier has been resolved or error occurs
Creates and posts a message for the tracker.
Tells the tracker to update the barrier value to the given value. Does not listen for a tracker response.
Requests the tracker to alert us when the given value is reached on the barrier.
|
protected |
Definition at line 672 of file UT_NetMessage.h.
|
protected |
Definition at line 670 of file UT_NetMessage.h.
|
protected |
Definition at line 676 of file UT_NetMessage.h.
|
protected |
Definition at line 668 of file UT_NetMessage.h.
|
protected |
Definition at line 669 of file UT_NetMessage.h.
|
protected |
Definition at line 674 of file UT_NetMessage.h.
|
protected |
Definition at line 675 of file UT_NetMessage.h.