Add KillHandle and implement exit code propagation to replace join_latch

This commit is contained in:
Ben Blum 2013-07-02 21:15:34 -04:00
parent 2a99163f5d
commit 52ca256d7b
3 changed files with 134 additions and 3 deletions

View file

@ -225,9 +225,9 @@ impl<T> Drop for UnsafeAtomicRcBox<T>{
/****************************************************************************/
#[allow(non_camel_case_types)] // runtime type
pub type rust_little_lock = *libc::c_void;
type rust_little_lock = *libc::c_void;
struct LittleLock {
pub struct LittleLock {
l: rust_little_lock,
}
@ -239,7 +239,7 @@ impl Drop for LittleLock {
}
}
fn LittleLock() -> LittleLock {
pub fn LittleLock() -> LittleLock {
unsafe {
LittleLock {
l: rust_create_little_lock()