![]() |
VR-Forces Developer's Guide
|
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 |
| 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 |