VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vantageTerrainImplementation
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
13
#include <
vantageTerrainImplementation/vantageTerrainImplementationDefines.h
>
14
#include <
vantageTerrainImplementation/vantageTerrainImplementationUtil.h
>
15
16
#include <tbb/tbb_thread.h>
17
#include <tbb/mutex.h>
18
19
class
DtActivePageTracker
;
20
24
class
DT_DLL_vantageTerrainImplementation
DtPreloadCommandManager
25
{
26
public
:
27
28
DtPreloadCommandManager
(
DtActivePageTracker
* pageTracker,
29
const
int
defaultPriority);
30
31
~
DtPreloadCommandManager
();
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
56
void
shutdown();
57
58
protected
:
59
60
static
void
threadMain(
DtPreloadCommandManager
* commandManager);
61
63
DtActivePageTracker
*
myPageTracker
;
64
66
DtPreloadGeometryQueue
myGeometryQueue
;
67
70
int
myDefaultPreloadPriority
;
71
72
std::auto_ptr<tbb::tbb_thread>
myPreloadCommandThread
;
73
mutable
tbb::mutex
myShutdownMutex
;
74
bool
myThreadShutdown
;
75
};
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)