Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is VR-Link thread-safe?

thread-safe vr-link
0
Posted

Is VR-Link thread-safe?

0

VR-Link is not thread-safe. However, it is possible to use VR-Link in multithreaded applications. You simply need to make sure that your VR-Link stuff is all in the same thread. So long as this is the case, VR-Link should work fine. The one case where the current version of VR-Link has problems is in applications where two completely independent threads both want to use VR-Link classes. With the current version, an application can only have one VR-Link thread! This limitation will be fixed in the next release. However, there are no plans to make VR-Link fully thread safe! The reason for this is that we would need to put in a lot of locking for it to work. It would be more efficient for people to put in their own locks on top of their VR-Link code. This is what we do in our own applications here at VT MÄK. One threading model which works very well is to have a main thread that does all the processing and a second thread that manages the exercise connection, reflected lists, publishers,

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.