safety of cMonster::m_Target
#10
(01-23-2016, 02:06 AM)xoft Wrote: Quite the opposite - you need to tell everyone to let go of the pointers when you delete the entity to replace it with a new one.

That problem is unrelated to world travel, it's a global thing - you need to have code which notifies others of your destruction anyways, regardless of anything discussed in this thread.

Quote:When keeping the same entity for the new world, the pointers can be kept.
They should never be kept. It is not thread safe to keep them.
Reply
Thanks given by: FakeTruth


Messages In This Thread
safety of cMonster::m_Target - by LogicParrot - 01-19-2016, 12:23 AM
RE: safety of cMonster::m_Target - by NiLSPACE - 01-19-2016, 12:38 AM
RE: safety of cMonster::m_Target - by LogicParrot - 01-19-2016, 12:44 AM
RE: safety of cMonster::m_Target - by worktycho - 01-19-2016, 02:24 AM
RE: safety of cMonster::m_Target - by xoft - 01-22-2016, 02:54 AM
RE: safety of cMonster::m_Target - by worktycho - 01-22-2016, 05:56 AM
RE: safety of cMonster::m_Target - by xoft - 01-23-2016, 01:10 AM
RE: safety of cMonster::m_Target - by LogicParrot - 01-23-2016, 01:35 AM
RE: safety of cMonster::m_Target - by xoft - 01-23-2016, 02:06 AM
RE: safety of cMonster::m_Target - by LogicParrot - 01-23-2016, 04:11 AM
RE: safety of cMonster::m_Target - by worktycho - 01-27-2016, 09:52 AM



Users browsing this thread: 4 Guest(s)