Skip to content

Commit 95bc9d4

Browse files
committed
export unwrap_arc functions in core/std
1 parent 9f0b3e3 commit 95bc9d4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/libcore/unsafe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export transmute_mut, transmute_immut, transmute_region, transmute_mut_region;
66
export SharedMutableState, shared_mutable_state, clone_shared_mutable_state;
77
export get_shared_mutable_state, get_shared_immutable_state;
88
export unwrap_shared_mutable_state;
9-
export Exclusive, exclusive;
9+
export Exclusive, exclusive, unwrap_exclusive;
1010

1111
import task::atomically;
1212

src/libstd/arc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ import sync;
1313
import sync::{mutex, mutex_with_condvars, rwlock, rwlock_with_condvars};
1414

1515
export arc, clone, get;
16-
export condvar, mutex_arc, mutex_arc_with_condvars;
16+
export condvar, mutex_arc, mutex_arc_with_condvars, unwrap_mutex_arc;
1717
export rw_arc, rw_arc_with_condvars, rw_write_mode, rw_read_mode;
18+
export unwrap_rw_arc;
1819

1920
/// As sync::condvar, a mechanism for unlock-and-descheduling and signalling.
2021
struct condvar { is_mutex: bool; failed: &mut bool; cond: &sync::condvar; }

0 commit comments

Comments
 (0)