From 00d1465d13980fc3acf650f182ee0723fbda0e06 Mon Sep 17 00:00:00 2001 From: Michael Bebenita Date: Mon, 19 Jul 2010 14:05:18 -0700 Subject: Added a message passing system based on lock free queues for inter-thread communication. Channels now buffer on the sending side, and no longer require blocking when sending. Lots of other refactoring and bug fixes. --- src/rt/sync/spin_lock.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/rt/sync/spin_lock.h') diff --git a/src/rt/sync/spin_lock.h b/src/rt/sync/spin_lock.h index 3684c23a..f15416a2 100644 --- a/src/rt/sync/spin_lock.h +++ b/src/rt/sync/spin_lock.h @@ -1,5 +1,5 @@ -#ifndef UNFAIR_TICKET_LOCK_H -#define UNFAIR_TICKET_LOCK_H +#ifndef SPIN_LOCK_H +#define SPIN_LOCK_H class spin_lock { unsigned ticket; @@ -11,4 +11,4 @@ public: void unlock(); }; -#endif /* UNFAIR_TICKET_LOCK_H */ +#endif /* SPIN_LOCK_H */ -- cgit v1.2.3