diff options
| author | Graydon Hoare <[email protected]> | 2010-09-08 19:13:49 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-09-08 19:13:49 -0700 |
| commit | 616b7afb724a32df41eebfaf95402d008c60b411 (patch) | |
| tree | 03e13578e8b43b9001cef983d1117800a6f93e65 /src/rt/sync/interrupt_transparent_queue.h | |
| parent | XFAIL many.rs since it crashes on win32, and add a time-slice sleep to the ke... (diff) | |
| download | rust-616b7afb724a32df41eebfaf95402d008c60b411.tar.xz rust-616b7afb724a32df41eebfaf95402d008c60b411.zip | |
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.
Diffstat (limited to 'src/rt/sync/interrupt_transparent_queue.h')
| -rw-r--r-- | src/rt/sync/interrupt_transparent_queue.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/rt/sync/interrupt_transparent_queue.h b/src/rt/sync/interrupt_transparent_queue.h deleted file mode 100644 index 7c02d0c8..00000000 --- a/src/rt/sync/interrupt_transparent_queue.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef INTERRUPT_TRANSPARENT_QUEUE_H -#define INTERRUPT_TRANSPARENT_QUEUE_H - -#include "spin_lock.h" - -class interrupt_transparent_queue_node { -public: - interrupt_transparent_queue_node *next; - interrupt_transparent_queue_node(); -}; - -class interrupt_transparent_queue : interrupt_transparent_queue_node { - spin_lock lock; - interrupt_transparent_queue_node *_tail; -public: - interrupt_transparent_queue(); - void enqueue(interrupt_transparent_queue_node *item); - interrupt_transparent_queue_node *dequeue(); - bool is_empty(); -}; - -#endif /* INTERRUPT_TRANSPARENT_QUEUE_H */ |