From 97d6342bf08e55f8d2b4f8df5c4b5a099df0191c Mon Sep 17 00:00:00 2001 From: Michael Bebenita Date: Mon, 9 Aug 2010 08:15:34 -0700 Subject: Synthesize a flush_chan upcall right before a channel's ref_count drops to zero. This should only happen in the Rust code and not in the drop glue, or on the unwind path. This change allows the task owning the channel to block on a flush and delete its own channel. This change also cleans up some code around rust_port and rust_chan. --- src/rt/rust_port.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rt/rust_port.h') diff --git a/src/rt/rust_port.h b/src/rt/rust_port.h index 3330701a..7a58f839 100644 --- a/src/rt/rust_port.h +++ b/src/rt/rust_port.h @@ -16,6 +16,7 @@ public: rust_port(rust_task *task, size_t unit_sz); ~rust_port(); void log_state(); + bool receive(void *dptr); }; // -- cgit v1.2.3