std: Convert uv_global_loop to use pipes

This commit is contained in:
Brian Anderson 2013-01-19 23:38:17 -08:00
parent fb9299346a
commit b9608fe423
14 changed files with 172 additions and 147 deletions

View file

@ -27,7 +27,7 @@ proto! oneshot (
)
fn main() {
let iotask = uv::global_loop::get();
let iotask = &uv::global_loop::get();
pipes::spawn_service(oneshot::init, |p| {
match try_recv(move p) {

View file

@ -35,7 +35,7 @@ fn main() {
use oneshot::client::*;
use stream::client::*;
let iotask = uv::global_loop::get();
let iotask = &uv::global_loop::get();
let c = pipes::spawn_service(stream::init, |p| {
error!("waiting for pipes");

View file

@ -27,7 +27,7 @@ fn main() {
let c = pipes::spawn_service(oneshot::init, |p| { recv(move p); });
let iotask = uv::global_loop::get();
let iotask = &uv::global_loop::get();
sleep(iotask, 500);
signal(move c);