ASyncRunStep doesn't need to lock when do setTimeOfDaySpeed.
authorLoic Blot <loic.blot@unix-experience.fr>
Wed, 4 Mar 2015 10:46:31 +0000 (11:46 +0100)
committerLoic Blot <loic.blot@unix-experience.fr>
Wed, 4 Mar 2015 10:46:31 +0000 (11:46 +0100)
commit7f8f9785d7e9e120a6708d2f51e32dfef3e50c19
tree454240229e803e8ca87a75e889fd54d3110ad426
parent1b2f64473ed4f222d3b7f02df853730d4382105e
ASyncRunStep doesn't need to lock when do setTimeOfDaySpeed.
* setTimeOfDaySpeed already lock a mutex when modify the value, we don't need to lock all environment.
* add a fine grain lock for getTimeOfDay and setTimeOfDay to solve environment multithread modifications on this value
src/environment.cpp
src/environment.h
src/server.cpp