Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | API Reference | awMain | awMainLoop
 
awMainLoop
BrokerError awMainLoop();
Starts a main-loop process that executes until stopped. The awMainLoop function is logically equivalent to:
while(do_not_stop) { awDispatch(AW_INFINITE); }
When using awMainLoop, you cannot invoke any of the following functions:
*awDispatch
*awThreadedCallbacks
For more information on the callback model see Using Specific Callbacks.
Possible BrokerError major codes
Meaning
AW_ERROR_FIELD_BAD_STATE
This function was called from a callback function.
See also: