MAK Data Logger API Documentation for DIS
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 
30  {
31  public:
32 
36 
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 
73  DtBoost::shared_ptr<DtThread> myThread;
74  mutable DtMutex myMutex;
75 
76  };
77 
78 }
79 
80 #endif

Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)