92 #include "dcppcallbackbase.h"
155 DitsDeltaTimeType delay;
157 StatusType errorStat;
171 DcppCallbackBase* callbackObj;
173 void ErrorHandler(StatusType * status);
174 void TimeoutHandler(StatusType * status);
175 void FinishedHandler(StatusType * status);
184 return ((DitsGetContext() == DITS_CTX_UFACE) ?
true :
false);
230 const float Timeout = -1);
257 const float Timeout = -1);
273 virtual void Install(StatusType * status,
int threads = 1);
283 virtual void DeInstall(StatusType *
const status);
295 finishedHandler = FinishedHandler;
350 void Wait(DitsTransIdType transId, StatusType* status,
double timeout = 0);
374 void WaitAll(StatusType* status,
double timeout = 0);
383 errorHandler = ErrorHandler;
390 clientData = ClientData;
400 virtual void SetTimeout(
const float Timeout);
409 const float Timeout) {
411 timeoutHandler = TimeoutHandler;
438 if (TheTask(debug) & DITS_LOG_LIBS)
439 Dits___Log(
"DcppHd::++[pre]",
440 "Thread count incremented for %p from %d to %d",
441 (
void *)
this, threadCount, threadCount+1);
449 if (TheTask(debug) & DITS_LOG_LIBS)
450 Dits___Log(
"DcppHd::++[post]",
451 "Thread count incremented for %p from %d to %d",
452 (
void *)
this, threadCount, threadCount+1);
463 if (TheTask(debug) & DITS_LOG_LIBS)
464 Dits___Log(
"DcppHd::NewThread",
465 "Thread count incremented for %p from %d to %d",
466 (
void *)
this, threadCount, threadCount+1);
478 void HandleReschedule(StatusType * status);
483 void SetupTimeout(
const float Timeout);
virtual void SetFinished(const DcppHandlerRoutine FinishedHandler)
Change the finished handler routine.
Definition: dcpphandler.h:294
A DRAMA Action reschedule handler used in conjunction with DcppTask.
Definition: dcpphandler.h:148
void operator++()
Increase the thread count by one.
Definition: dcpphandler.h:437
virtual void SetTimeout(const DcppHandlerRoutine TimeoutHandler, const float Timeout)
Set a timeout handler routine and new timeout.
Definition: dcpphandler.h:408
virtual DcppVoidPnt GetData() const
Return the client data value.
Definition: dcpphandler.h:428
virtual void NewThread()
Increase the thread count by one.
Definition: dcpphandler.h:462
virtual int ThreadCount() const
Return the number messages being controlled at the moment.
Definition: dcpphandler.h:432
void * DcppVoidPnt
A pointer to void.
Definition: dcpp.h:59
void operator++(int)
Increase the thread count by one.
Definition: dcpphandler.h:448
virtual StatusType ErrorStatus() const
Return the status associated with the first error event.
Definition: dcpphandler.h:423
virtual void SetData(const DcppVoidPnt ClientData)
Change the handler routine client data item.
Definition: dcpphandler.h:389
virtual void SetError(const DcppHandlerRoutine ErrorHandler)
Change the error handler routine.
Definition: dcpphandler.h:382
virtual void SetMultiCallErrorMode(int enable=true)
Set the multi error call mode.
Definition: dcpphandler.h:418
DcppHandlerRet(* DcppHandlerRoutine)(DcppVoidPnt ClientData, StatusType *status)
Type for call backs when messages arrive.
Definition: dcpp.h:92