summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/Thread.cpp
diff options
context:
space:
mode:
authorGlenn Rice <glennricster@gmail.com>2010-11-22 02:42:53 +0000
committerGlenn Rice <glennricster@gmail.com>2010-11-22 02:42:53 +0000
commita3c46990f617c803e552d71d5e08429a600cc993 (patch)
tree2dcf274c91f8a5ea987f740bbe1655e39387acee /Source/Core/Common/Src/Thread.cpp
parent63c35bf14ab652144c173b12d993daf138c0afd7 (diff)
Revert to gettimeofday on posix systems. I give up.
Temporary fix for OSX in JitIL.cpp This revision should build on OSX again. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6457 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/Thread.cpp')
-rw-r--r--Source/Core/Common/Src/Thread.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/Source/Core/Common/Src/Thread.cpp b/Source/Core/Common/Src/Thread.cpp
index aeee52ca22..76de6cfbd3 100644
--- a/Source/Core/Common/Src/Thread.cpp
+++ b/Source/Core/Common/Src/Thread.cpp
@@ -493,15 +493,9 @@ namespace Common
if (timeout != INFINITE)
{
memset(&wait, 0, sizeof(wait));
-#ifdef USE_GETTIMEOFDAY
struct timeval now;
gettimeofday(&now, NULL);
wait.tv_nsec = (now.tv_usec + (timeout % 1000)) * 1000;
-#else
- struct timespec now;
- clock_gettime(CLOCK_MONOTONIC_RAW, &now);
- wait.tv_nsec = now.tv_nsec + (timeout % 1000) * 1000000;
-#endif
wait.tv_sec = now.tv_sec + (timeout / 1000);
}