VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
preloadCommandManager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
16 #include <tbb/tbb_thread.h>
17 #include <tbb/mutex.h>
18 
20 
25 {
26 public:
27 
29  const int defaultPriority);
30 
32 
35  virtual void tick();
36 
40  virtual void addPreloadGeometry(
41  const DtTerrainPagingGeometryList& geometryList,
42  DtTerrainIntersectIDType intersectId);
43 
46  virtual void startPreloadCommandThread();
49  void stopPreloadCommandThread();
50 
53  bool threadShouldExit() const;
54 
55 protected:
56 
57  static void threadMain(DtPreloadCommandManager* commandManager);
58 
61 
64 
68 
69  std::auto_ptr<tbb::tbb_thread> myPreloadCommandThread;
70  mutable tbb::mutex myShutdownMutex;
72 };

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)