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/rust_chan.h | |
| 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/rust_chan.h')
| -rw-r--r-- | src/rt/rust_chan.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rt/rust_chan.h b/src/rt/rust_chan.h index a56ba0ca..3e32d838 100644 --- a/src/rt/rust_chan.h +++ b/src/rt/rust_chan.h @@ -9,7 +9,7 @@ public: rust_task *task; rust_port *port; - circ_buf buffer; + circular_buffer buffer; size_t idx; // Index into port->chans. // Token belonging to this chan, it will be placed into a port's @@ -17,6 +17,8 @@ public: rust_token token; void disassociate(); + + int transmit(); }; #endif /* RUST_CHAN_H */ |