From 616b7afb724a32df41eebfaf95402d008c60b411 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Wed, 8 Sep 2010 19:13:49 -0700 Subject: Tidy up the sync dir, remove dead or mis-designed code in favour of OS primitives, switch rust_kernel to use a lock/signal pair and wait rather than spin. --- src/rt/sync/condition_variable.h | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 src/rt/sync/condition_variable.h (limited to 'src/rt/sync/condition_variable.h') diff --git a/src/rt/sync/condition_variable.h b/src/rt/sync/condition_variable.h deleted file mode 100644 index f336a7f2..00000000 --- a/src/rt/sync/condition_variable.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef CONDITION_VARIABLE_H -#define CONDITION_VARIABLE_H - -class condition_variable { -#if defined(__WIN32__) - HANDLE _event; -#else - pthread_cond_t _cond; - pthread_mutex_t _mutex; -#endif -public: - condition_variable(); - virtual ~condition_variable(); - - void wait(); - void timed_wait(size_t timeout_in_ns); - void signal(); -}; - -#endif /* CONDITION_VARIABLE_H */ -- cgit v1.2.3