Cuberite Forum
safety of cMonster::m_Target - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: safety of cMonster::m_Target (/thread-2324.html)

Pages: 1 2


RE: safety of cMonster::m_Target - worktycho - 01-27-2016

I personally think we shouldn't keep non-owning pointers across ticks at all, let alone threads. The code for handling same thread notifications is unmaintainable as it is.