GlobalEventListener's Thread?
Aydin
✭
in Photon Bolt
Hi,
I wanted to know if the events in GlobalEventListener (like BoltStartBegin, BoltShutdownBegin, SessionCreatedOrUpdated, SessionConnected, ConnectRequest, Connected, SceneLoadLocalDone and SceneLoadRemoteDone) get executed on the main thread like Unity APIs? If the answer is yes, is it guaranteed or there might be occasions that they get executed on another thread?
This is important for me as I want to see if I have to make put locks around variables these events manipulate or not.
Look forward to hearing from you.
Regards,
Aydin
I wanted to know if the events in GlobalEventListener (like BoltStartBegin, BoltShutdownBegin, SessionCreatedOrUpdated, SessionConnected, ConnectRequest, Connected, SceneLoadLocalDone and SceneLoadRemoteDone) get executed on the main thread like Unity APIs? If the answer is yes, is it guaranteed or there might be occasions that they get executed on another thread?
This is important for me as I want to see if I have to make put locks around variables these events manipulate or not.
Look forward to hearing from you.
Regards,
Aydin
0
Comments
-
Thanks Ramon! Is this documented anywhere?0
-
Hello @Aydin ,
Yes, take a look here: https://doc.photonengine.com/en-us/bolt/current/gameplay/update-loop
--
Ramon Melo
Photon Bolt Team0