diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-11-12 14:38:28 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-11-13 18:34:59 -0800 |
| commit | 9bcf557589a385d163c6d543ede82953b09e072f (patch) | |
| tree | fa03002e7054bde23c9712637f78914806e16454 /src/rustllvm/RustWrapper.cpp | |
| parent | 1bfa45cfd9d7c8b2dcc0ea7a42396624e8b5a31b (diff) | |
| download | rust-9bcf557589a385d163c6d543ede82953b09e072f.tar.gz rust-9bcf557589a385d163c6d543ede82953b09e072f.zip | |
Implement native::IoFactory
This commit re-organizes the io::native module slightly in order to have a working implementation of rtio::IoFactory which uses native implementations. The goal is to seamlessly multiplex among libuv/native implementations wherever necessary. Right now most of the native I/O is unimplemented, but we have existing bindings for file descriptors and processes which have been hooked up. What this means is that you can now invoke println!() from libstd with no local task, no local scheduler, and even without libuv. There's still plenty of work to do on the native I/O factory, but this is the first steps into making it an official portion of the standard library. I don't expect anyone to reach into io::native directly, but rather only std::io primitives will be used. Each std::io interface seamlessly falls back onto the native I/O implementation if the local scheduler doesn't have a libuv one (hurray trait ojects!)
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
