about summary refs log tree commit diff
path: root/src/rt/sync/sync.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-02-09 14:29:55 -0800
committerBrian Anderson <banderson@mozilla.com>2012-02-09 19:00:16 -0800
commit5d8d591ffc110836a12487ac53a120b2015856ce (patch)
treea8b7f1d385aa5a92ce5021d41f3718565a676fc7 /src/rt/sync/sync.cpp
parent421c8db14430011d40f8f8499ca4aefbcc26d07e (diff)
downloadrust-5d8d591ffc110836a12487ac53a120b2015856ce.tar.gz
rust-5d8d591ffc110836a12487ac53a120b2015856ce.zip
rt: Remove sync::yield and sync::sleep
Diffstat (limited to 'src/rt/sync/sync.cpp')
-rw-r--r--src/rt/sync/sync.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/rt/sync/sync.cpp b/src/rt/sync/sync.cpp
deleted file mode 100644
index 3bf37986161..00000000000
--- a/src/rt/sync/sync.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-#include "../globals.h"
-#include "sync.h"
-
-void sync::yield() {
-#ifdef __APPLE__
-    pthread_yield_np();
-#elif __WIN32__
-    Sleep(1);
-#else
-    pthread_yield();
-#endif
-}
-
-void sync::sleep(size_t timeout_in_ms) {
-#ifdef __WIN32__
-    Sleep(timeout_in_ms);
-#else
-    usleep(timeout_in_ms * 1000);
-#endif
-}