about summary refs log tree commit diff
path: root/src/rt/rust_internal.h
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2010-07-22 15:39:41 -0700
committerGraydon Hoare <graydon@mozilla.com>2010-07-22 15:39:41 -0700
commit7ff20944960c26eee4fb2274afb3c29e5e4367ba (patch)
tree725fa28e8ad50451f2d28c8892d6082e971ae9d2 /src/rt/rust_internal.h
parent1cb4a57b7b2fda8db6a225207c9b9c090ba565d1 (diff)
downloadrust-7ff20944960c26eee4fb2274afb3c29e5e4367ba.tar.gz
rust-7ff20944960c26eee4fb2274afb3c29e5e4367ba.zip
Back out too-platform-fussy bits in preempt-test work. I hate this test.
Diffstat (limited to 'src/rt/rust_internal.h')
-rw-r--r--src/rt/rust_internal.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/rt/rust_internal.h b/src/rt/rust_internal.h
index 99f521656e8..d962e894153 100644
--- a/src/rt/rust_internal.h
+++ b/src/rt/rust_internal.h
@@ -67,17 +67,6 @@ struct frame_glue_fns;
 
 static size_t const TIME_SLICE_IN_MS = 10;
 
-// This helps our preemption scheme handle "running on valgrind".
-
-#if defined(__WIN32__)
-#define YIELD_C_THREAD_IF_ON_VALGRIND (void);
-#else
-#define YIELD_C_THREAD_IF_ON_VALGRIND  \
-    if (RUNNING_ON_VALGRIND) {         \
-        pthread_yield();               \
-    }
-#endif
-
 // Every reference counted object should derive from this base class.
 
 template <typename T>