AAO DRAMA C++ Interface (Old style)
DRAMA C++, Depreciated, don't use for new code

◆ WaitAll()

void DcppHandler::WaitAll ( StatusType *  status,
double  timeout = 0 
)

Wait for all outstanding messages to complete.

This method waits for all outstanding messages which are being managed by this handler to complete.

Remarks
Beware that if you invoke this function from a DcppTask message response handler function, then you must have incremented the thread count for each message you sent from that handler function. You would then normally return DcppFinished from the invoking handler function.
Parameters
statusInherited status
timeoutif positive, this is the timeout to apply for wait operation. If this is triggered, then the Timeout handler associated with the DcppHandler object is triggred. The default handler will set the status to DCPP__TIMEOUT. In eiter case, DitsGetEntReason() will return DITS_REA_RESCHED.