VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
asyncJobMapEntry.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright 2010 VT MAK
3 *******************************************************************************/
4 
5 
8 
9 #pragma once
10 
11 #include "vrfutil/vrfutilDefines.h"
12 
13 #include "asyncJobServer.h"
14 
15 #include <stdlib.h>
16 #include <memory>
17 
18 #include <tbb/spin_rw_mutex.h>
19 
20 #include <vrfutil/objectCounter.h>
21 
30  : public DtObjectDebugger<DtAsyncJobMapEntry>
31 {
32 public:
34 
36  virtual ~DtAsyncJobMapEntry();
37 
39  virtual size_t id();
40 
42  virtual DtAsyncJobServer& server();
43 
45  virtual DtAsyncJobStatus status() const;
46 
48  virtual const DtAsyncJobResult* result() const;
49 
51  virtual void setStatus(DtAsyncJobStatus status);
52 
54  virtual void setResult(DtAsyncJobStatus status, DtAsyncJobResult* result = 0);
55 
56 protected:
57  typedef tbb::spin_rw_mutex Mutex;
58 
59  mutable Mutex myMutex;
61  size_t myId;
63  std::auto_ptr<DtAsyncJobResult> myResult;
64 };
65 
Mutex myMutex
Definition: asyncJobMapEntry.h:59
DtAsyncJobStatus
State of job.
Definition: asyncJobServer.h:33
std::auto_ptr< DtAsyncJobResult > myResult
Definition: asyncJobMapEntry.h:63
#define DT_DEFINE_OBJECT_DEBUGGER_NAME(type)
Definition: objectCounter.h:265
Default on in debug, off in release.
Definition: objectCounter.h:31
size_t myId
Definition: asyncJobMapEntry.h:61
tbb::spin_rw_mutex Mutex
Definition: asyncJobMapEntry.h:57
Base class for result of job.
Definition: asyncJobServer.h:43
DtAsyncJobServer * myServer
Definition: asyncJobMapEntry.h:60
Handle to async job.
Definition: asyncJobMapEntry.h:29
DtAsyncJobStatus myStatus
Definition: asyncJobMapEntry.h:62
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
Manages async job objects.
Definition: asyncJobServer.h:73

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)