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/rust_chan.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/rt/rust_chan.h') 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 */ -- cgit v1.2.3