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/fair_ticket_lock.h | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 src/rt/sync/fair_ticket_lock.h (limited to 'src/rt/sync/fair_ticket_lock.h') diff --git a/src/rt/sync/fair_ticket_lock.h b/src/rt/sync/fair_ticket_lock.h deleted file mode 100644 index c34c9041..00000000 --- a/src/rt/sync/fair_ticket_lock.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef FAIR_TICKET_LOCK_H -#define FAIR_TICKET_LOCK_H - -class fair_ticket_lock { - unsigned next_ticket; - unsigned now_serving; - void pause(); -public: - fair_ticket_lock(); - virtual ~fair_ticket_lock(); - void lock(); - void unlock(); -}; - -#endif /* FAIR_TICKET_LOCK_H */ -- cgit v1.2.3