1
0
Fork 0

Make use of SGTimeStamp for sleep*

This commit is contained in:
Mathias Froehlich 2011-10-28 17:01:50 +02:00
parent 956ba8845b
commit 0bd7078c42
2 changed files with 3 additions and 4 deletions

View file

@ -47,11 +47,11 @@
#include <simgear/props/AtomicChangeListener.hxx>
#include <simgear/props/props.hxx>
#include <simgear/timing/sg_time.hxx>
#include <simgear/timing/timestamp.hxx>
#include <simgear/magvar/magvar.hxx>
#include <simgear/math/sg_random.h>
#include <simgear/io/raw_socket.hxx>
#include <simgear/scene/tsync/terrasync.hxx>
#include <simgear/misc/sg_sleep.hxx>
#include <Time/light.hxx>
#include <Aircraft/replay.hxx>
@ -214,7 +214,7 @@ static void fgMainLoop( void ) {
{
fgSplashProgress("loading scenery");
// be nice to loader threads while waiting for initial scenery, reduce to 2fps
simgear::sleepForMSec(500);
SGTimeStamp::sleepForMSec(500);
}
}

View file

@ -34,7 +34,6 @@
#include <simgear/io/HTTPClient.hxx>
#include <simgear/io/HTTPRequest.hxx>
#include <simgear/timing/timestamp.hxx>
#include <simgear/misc/sg_sleep.hxx>
using namespace std;
using namespace simgear;
@ -586,7 +585,7 @@ int main(int argc, char *argv[])
if (mr->complete || mr->failed) {
break;
}
sleepForMSec(1);
SGTimeStamp::sleepForMSec(1);
}
if (!mr->complete) {