util: Add a multiprocess command-line option and implement

`OptionalIpcSender<T>`.

`OptionalIpcSender<T>`dynamically switches between in-process and
out-of-process communication depending on whether multiprocess mode is
enabled.

The multiprocess command-line switch doesn't actually turn on
multiprocess mode yet, but it does control the behavior of
`OptionalIpcSender<T>`.
This commit is contained in:
Patrick Walton 2015-07-27 12:39:24 -07:00
parent ca9f9226b0
commit ef9fdc6e30
5 changed files with 93 additions and 0 deletions

View file

@ -31,6 +31,7 @@ extern crate alloc;
#[macro_use] extern crate cssparser;
extern crate euclid;
extern crate getopts;
extern crate ipc_channel;
extern crate libc;
extern crate num as num_lib;
extern crate num_cpus;
@ -49,6 +50,7 @@ pub mod debug_utils;
pub mod deque;
pub mod linked_list;
pub mod geometry;
pub mod ipc;
pub mod logical_geometry;
pub mod mem;
pub mod opts;