MAK Data Logger API Documentation for HLA
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
lgrUtil
threaded.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
8
9
10
#ifndef threaded_H_
11
#define threaded_H_
12
13
#include "
lgrUtil.h
"
14
#include "
lgrExceptions.h
"
15
16
#include <vlutil/vlSmartPointers.h>
17
#include <vlutil/vlThread.h>
18
#include <vlutil/vlRunnable.h>
19
20
namespace
MAKLogger
21
{
22
23
class
DtThreadable;
24
25
typedef
DtBoost::shared_ptr<DtRunnable>
DtRunnableSP
;
26
29
class
DT_DLL_LGRUTIL
DtThreadedObject
30
{
31
public
:
32
35
DtThreadedObject
(
DtRunnableSP
ptr);
36
38
~
DtThreadedObject
();
39
42
void
start();
43
46
void
join();
47
51
void
stop(
bool
block);
52
54
bool
running()
const
;
55
57
bool
started()
const
;
58
61
void
setRunnableObject(
DtRunnableSP
newObject);
62
64
DtRunnableSP
runnableObject()
const
;
65
66
protected
:
67
69
void
setRunning(
bool
value);
70
71
bool
myRunningFlag
;
72
DtRunnableSP
myObject
;
73
DtBoost::shared_ptr<DtThread>
myThread
;
74
mutable
DtMutex
myMutex
;
75
76
};
77
78
}
79
80
#endif
Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)