From 7ff20944960c26eee4fb2274afb3c29e5e4367ba Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 22 Jul 2010 15:39:41 -0700 Subject: Back out too-platform-fussy bits in preempt-test work. I hate this test. --- src/rt/rust_internal.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/rt/rust_internal.h') diff --git a/src/rt/rust_internal.h b/src/rt/rust_internal.h index 99f52165..d962e894 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 -- cgit v1.2.3