Text archives Help
- From: boulos@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [Manta] r1897 - trunk/UserInterface
- Date: Mon, 3 Dec 2007 15:16:50 -0700 (MST)
Author: boulos
Date: Mon Dec 3 15:16:49 2007
New Revision: 1897
Modified:
trunk/UserInterface/SyncFrameAutomator.cc
Log:
SyncFrameAutomator.cc
Removing dependence on unistd.h (since we have our own Time anyway)
Modified: trunk/UserInterface/SyncFrameAutomator.cc
==============================================================================
--- trunk/UserInterface/SyncFrameAutomator.cc (original)
+++ trunk/UserInterface/SyncFrameAutomator.cc Mon Dec 3 15:16:49 2007
@@ -28,8 +28,8 @@
#include <UserInterface/SyncFrameAutomator.h>
#include <iostream>
-#include <unistd.h>
#include <Core/Thread/Mutex.h>
+#include <Core/Thread/Time.h>
using namespace Manta;
using namespace std;
@@ -73,8 +73,8 @@
syncd->renderFrame();
syncd->doneRendering();
} else {
- // Wait for a little bit
- usleep(10);
+ // Wait for a little bit (10 microseconds)
+ Time::waitFor(10. / 1e6);
}
}
cerr << "SyncFrameAutomator::run_automator(): end\n";
- [Manta] r1897 - trunk/UserInterface, boulos, 12/03/2007
Archive powered by MHonArc 2.6.16.