Reply – Re: Any news about synchronization issues?
Your Name
or Cancel
In Reply To
Re: Any news about synchronization issues?
— by fredvs fredvs
fauri wrote
It worked like a charm! I made some tests with a old netbook with Windows 7, and the performance was very good too!
Ha, finally we get it. I am very happy for you.

fauri wrote
By the way, how exactly works the set of functions uos_SetGlobalEvent, uos_PlayPausednofree and uos_Replay? I don't know if I understood correctly. Anyway, my project is works as expected now! Thanks a lot, Fred and Phoenix!
uos_SetGlobalEvent ---> uos uses RTL events to pause/resume a thread (the player).
If you set uos_SetGlobalEvent  to true, all the players already created will use only one pause-event, the same for all players.( otherwise a particular pause-event is a assigned for each player).
So, with uos_SetGlobalEvent(true), if you pause some of players, when you use uos_replay (that will use the global event), all the paused players will resume, all together, at the same moment without any delay.

uos_PlayPausednofree ---> This for start a player, no free it at end and pause it just after play.
Use this if you need a perfect synchro: first start-paused player then...

uos_Replay ---> When all the players are start-paused, use uos_Replay to play the paused players.
If uos_SetGlobalEvent was set to true, you need to uos_Replay only one player, all other start-paused players will play synchro.