VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtLoaderHandle.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 
15 #include <boost/thread.hpp>
16 #include <atomic>
17 #include <string>
18 
19 namespace makVrv
20 {
21  class DtModel;
22 
29  {
30  DtLoaderHandle(DtModel* object);
31  ~DtLoaderHandle();
32 
34  std::string myModelDefinitionName; // cached at construction; safe to read even after myObject is null
35  DtModelLoadParams myModelLoadParams; // captured on main thread; safe to read from background thread
36  std::atomic<int> myCurrentlyLoading;
37 
38  // myCurrentlyLoadingMutex serializes the transition of myCurrentlyLoading
39  // between states so that the main thread (via updateQueue / drainCompletedTBBTasks)
40  // and the background task do not race on handle ownership or deletion.
42  };
43 
44 } // namespace makVrv
DtModelLoadParams myModelLoadParams
Definition: DtLoaderHandle.h:35
boost::mutex myCurrentlyLoadingMutex
Definition: DtLoaderHandle.h:41
std::string myModelDefinitionName
Definition: DtLoaderHandle.h:34
Wrapper object that insulates the loader from other threads destroying an object. The DtModelLoadPara...
Definition: DtLoaderHandle.h:28
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtModel * myObject
Definition: DtLoaderHandle.h:33
Contains makVrv::DtModelLoadParams class.
A model which owns a single model instance. A DtModel is a managing container for a single DtModelIns...
Definition: DtModel.h:57
std::atomic< int > myCurrentlyLoading
Definition: DtLoaderHandle.h:36
Parameters pre-read from a DtModelDefinition, either from the live definition on the main thread via ...
Definition: DtModelLoadParams.h:34
Contains DLL export macros.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)