diff options
| author | Michael Bebenita <[email protected]> | 2010-07-19 14:05:18 -0700 |
|---|---|---|
| committer | Michael Bebenita <[email protected]> | 2010-07-19 14:05:18 -0700 |
| commit | 00d1465d13980fc3acf650f182ee0723fbda0e06 (patch) | |
| tree | a73cf5f0f20c0bee6722b33d975eb930919fefdf /src/rt/sync/spin_lock.cpp | |
| parent | Add a test for an obvious-seeming (but not actually legal) kind of cast attem... (diff) | |
| download | rust-00d1465d13980fc3acf650f182ee0723fbda0e06.tar.xz rust-00d1465d13980fc3acf650f182ee0723fbda0e06.zip | |
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.
Diffstat (limited to 'src/rt/sync/spin_lock.cpp')
| -rw-r--r-- | src/rt/sync/spin_lock.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rt/sync/spin_lock.cpp b/src/rt/sync/spin_lock.cpp index 11a5cb20..4a113d1a 100644 --- a/src/rt/sync/spin_lock.cpp +++ b/src/rt/sync/spin_lock.cpp @@ -1,9 +1,10 @@ +#include "../globals.h" +#include "spin_lock.h" + /* * Your average spin lock. */ -#include "globals.h" - // #define TRACE spin_lock::spin_lock() { |