2 * Copyright 2017 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
16 #include <MessageRunner.h>
17 #include <Messenger.h>
29 BString name
, taskParam
;
32 BString resultName
, resultErrorDetails
;
37 class TaskTimer
: public BLooper
{
39 TaskTimer(const BMessenger
& target
, Task
* owner
);
41 virtual bool QuitRequested();
42 virtual void MessageReceived(BMessage
*);
43 void Start(const char* name
);
44 void Stop(const char* name
);
47 int32
_NextAlertStackCount();
49 int32 fTimeoutMicroSeconds
;
51 BString fRepositoryName
;
52 BMessenger fReplyTarget
;
53 BMessenger fMessenger
;
54 BMessageRunner
* fMessageRunner
;
55 BMessage fTimeoutMessage
;
56 BAlert
* fTimeoutAlert
;
57 BInvoker fTimeoutAlertInvoker
;