VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Attributes
DtVrfContext Struct Reference

DtVrfContext - Bundles the VRF runtime objects passed to a processor on initialization. All pointers remain valid for the lifetime of the processor.

Thread safety model: The VRF tick thread holds vrfDataMutex exclusively (write) during tickVRFAPI(), poll(), and all remote-controller command calls.

Processors that read from remoteController outside the tick (e.g. in queryAll() / query() called from Drogon threads) must acquire a tbb::spin_rw_mutex::scoped_lock (write=false) on vrfDataMutex. Multiple clients may read concurrently; the write lock is blocked until all readers release.

poll() is called while the exclusive lock is already held by the VRF thread — processors must NOT re-acquire vrfDataMutex inside poll().

Public Attributes

makVrf::DtVrlinkVrfRemoteController * remoteController = nullptr
 
tbb::spin_rw_mutex * vrfDataMutex = nullptr
 
DtWebServerObjectList * trackedObjects = nullptr
 
const DtCommandSpecBuilder * commandSpecBuilder = nullptr
 
const
DtRemoteControlModelSetManager * 
modelSetManager = nullptr
 
DtResourceCache * resourceCache = nullptr
 

Member Data Documentation

makVrf::DtVrlinkVrfRemoteController* DtVrfContext::remoteController = nullptr
tbb::spin_rw_mutex* DtVrfContext::vrfDataMutex = nullptr
DtWebServerObjectList* DtVrfContext::trackedObjects = nullptr
const DtCommandSpecBuilder* DtVrfContext::commandSpecBuilder = nullptr
const DtRemoteControlModelSetManager* DtVrfContext::modelSetManager = nullptr
DtResourceCache* DtVrfContext::resourceCache = nullptr

The documentation for this struct was generated from the following file:

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)