Skip to content

Use the native tls implementation on android #10687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 28, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/libstd/rt/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ mod test {
#[test]
fn thread_local_task_smoke_test() {
do run_in_bare_thread {
local_ptr::init_tls_key();
local_ptr::init();
let mut sched = ~new_test_uv_sched();
let task = ~Task::new_root(&mut sched.stack_pool, None, proc(){});
Local::put(task);
Expand All @@ -144,7 +144,7 @@ mod test {
#[test]
fn thread_local_task_two_instances() {
do run_in_bare_thread {
local_ptr::init_tls_key();
local_ptr::init();
let mut sched = ~new_test_uv_sched();
let task = ~Task::new_root(&mut sched.stack_pool, None, proc(){});
Local::put(task);
Expand All @@ -161,7 +161,7 @@ mod test {
#[test]
fn borrow_smoke_test() {
do run_in_bare_thread {
local_ptr::init_tls_key();
local_ptr::init();
let mut sched = ~new_test_uv_sched();
let task = ~Task::new_root(&mut sched.stack_pool, None, proc(){});
Local::put(task);
Expand All @@ -177,7 +177,7 @@ mod test {
#[test]
fn borrow_with_return() {
do run_in_bare_thread {
local_ptr::init_tls_key();
local_ptr::init();
let mut sched = ~new_test_uv_sched();
let task = ~Task::new_root(&mut sched.stack_pool, None, proc(){});
Local::put(task);
Expand Down
Loading