about summary refs log tree commit diff
path: root/src/rt/rust_chan.h
AgeCommit message (Collapse)AuthorLines
2011-11-11rt: Remove rust_chanBrian Anderson-35/+0
2011-11-10rt: Move rust_chan::send to rust_port::sendBrian Anderson-2/+0
2011-11-10rt: Simplify channel-port associationBrian Anderson-2/+0
It turns out that there's only ever a single channel per port these days, and it always has the same lifetime as the port, so we don't need a list or a complex association protocol.
2011-08-16New channel-based task status notifications.Eric Holk-6/+0
2011-08-16Removed trans_comm.rs from the compiler. Updating aio/sio to work with the ↵Eric Holk-0/+6
new chan and port system, started on a networking module for the standard library.
2011-08-08Converted the rest of the task-comm-* tests over. Also fixed someEric Holk-3/+0
channel lifecycle bugs.
2011-08-05Atomic ref counting for chans.Eric Holk-3/+3
2011-07-29Removing proxies and message queues.Eric Holk-3/+3
2011-07-28Atomic reference counting for tasks.Eric Holk-1/+1
2011-07-21Improving move semantics for channel operations.Eric Holk-2/+3
This lets us un-XFAIL task-comm-10.rs.
2011-07-21Lots of work on memory tracking and channels.Eric Holk-1/+1
We're trying to get closer to doing correct move semantics for channel operations. This involves a lot of cleanup (such as removing the unused sched parameter from rust_vec constructor) and making circular_buffer kernel_owned. Added tagging for memory allocations. This means we give a string tag to everything we allocate. If we leak something and TRACK_ALLOCATIONS is enabled, then it's much easier now to tell exactly what is leaking.
2011-07-13Fix compile-command lines in rt.Graydon Hoare-1/+1
2011-07-07Work on debugging race conditions.Eric Holk-1/+2
Ports and channels have been moved to the kernel pool, since they've been known to outlive their associated task. This probably isn't the right thing to do, the life cycle needs fixed instead. Some refactorying in memory_region.cpp. Added a helper function to increment and decrement the allocation counter. This makes it easier to switch between atomic and non-atomic increments. Using atomic increments for now, although this still does not fix the problem.
2011-07-01Sync rust_chan's deref() method with rustc's code.Rob Arnold-2/+2
If the channel is associated with a port then the destructor will assert. Additionally, destruction of the object is not always appropriate. This brings the deref() method into sync with the behavior of generated rust code which only invokes destroy() once the reference count goes to 0.
2011-07-01Move the channel destroy code into rust_chan.Rob Arnold-0/+3
This lets native code more easily destroy channels since directly deleting a channel is not always the right way to destroy it.
2011-07-01Move channel cloning logic into a method on rust_chan.Rob Arnold-0/+2
This will allow us to more easily clone channels from native code.
2010-09-07Lots of design changes around proxies and message passing. Made it so that ↵Michael Bebenita-1/+2
domains can only talk to other domains via handles, and with the help of the rust_kernel.
2010-08-09Synthesize a flush_chan upcall right before a channel's ref_count drops to ↵Michael Bebenita-1/+1
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.
2010-07-28Move ports out into their own file, add data_message and make communication ↵Michael Bebenita-10/+9
system use it (and proxies) instead of existing token scheme.
2010-07-28Add modeline / file-local emacs var blocks.Michael Bebenita-0/+11
2010-07-19Added a message passing system based on lock free queues for inter-thread ↵Michael Bebenita-1/+3
communication. Channels now buffer on the sending side, and no longer require blocking when sending. Lots of other refactoring and bug fixes.
2010-06-23Populate tree.Graydon Hoare-0/+22