]> git.mxchange.org Git - flightgear.git/commit
add /sim/time/real/ (local machine time) analog to /sim/time/utc/
authormfranz <mfranz>
Sun, 15 Feb 2009 22:49:51 +0000 (22:49 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 15 Feb 2009 23:56:44 +0000 (00:56 +0100)
commit83edcb294964866f2c53b93681727173a96ee2b6
tree3525871e6cecf7df7abeae3459f2bbe5c3b4a408
parent7fd6f68c4ea2b0ceb9cfdee8e7b36f7080d03158
add /sim/time/real/ (local machine time) analog to /sim/time/utc/

localtime() is once commented out in simgear/io/sg_binobj.cxx and
a warning says the it can screw up sim time. This is only because
localtime() isn't thread-safe (and its thread-safe cousin localtime_r()
isn't portable). As long as all timing is done in the main thread
(which is the case) there should be no problem. Otherwise we'd have
to implement a simple mutex locked wrapper.
src/Main/fg_props.cxx