MeVisLabToolboxReference
mlBackgroundTaskStatusInformation.h
Go to the documentation of this file.
1 // **InsertLicense** code
2 //----------------------------------------------------------------------------------
9 //----------------------------------------------------------------------------------
10 
11 
12 #ifndef __mlBackgroundTaskStatusInformation_H
13 #define __mlBackgroundTaskStatusInformation_H
14 
15 // Local includes
17 #include "mlBackgroundTask.h"
18 
19 ML_START_NAMESPACE
20 
21 //-----------------------------------------------------------------------
25 {
26 public:
29 
30  std::string statusString() const { return _statusString; }
31  float progress() const { return _progress; }
32  BackgroundTask::Status status() const { return _status; }
33  void* owner() const { return _owner; }
34  MLuint32 taskId() const { return _taskId; }
35 
36 protected:
37  friend class BackgroundTask;
38 
39  std::string _statusString;
40  float _progress;
42  void* _owner;
44 };
45 
46 ML_END_NAMESPACE
47 
48 #endif
49 
50 
Base class for a task that is started in an extra thread.
Project global and OS specific declarations.
#define MLBACKGROUNDTASKS_EXPORT
Status
Defines current status of the task.
BackgroundTaskStatusInformation creates a snapshot of the status of a given BackgroundTask, to allow later read access without races or even destruction of the background task (copyable).
unsigned int MLuint32
Definition: mlTypeDefs.h:213