diff options
| author | panicbit <[email protected]> | 2017-07-11 03:21:47 +0200 |
|---|---|---|
| committer | panicbit <[email protected]> | 2017-07-11 03:21:47 +0200 |
| commit | 393ef5f8a9ad90cc7705f5900e70cd35fee9599d (patch) | |
| tree | 4fe3c3ec2c236a2c80537e7ebc5ae6a49df16775 /ctr-std/src/sys/unix/thread.rs | |
| parent | Remove ctr-libc dep from ctr-std (diff) | |
| parent | Merge pull request #31 from FenrirWolf/ctrulib-update (diff) | |
| download | archived-ctru-rs-393ef5f8a9ad90cc7705f5900e70cd35fee9599d.tar.xz archived-ctru-rs-393ef5f8a9ad90cc7705f5900e70cd35fee9599d.zip | |
Merge branch 'master' into nightly_update
Diffstat (limited to 'ctr-std/src/sys/unix/thread.rs')
| -rw-r--r-- | ctr-std/src/sys/unix/thread.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ctr-std/src/sys/unix/thread.rs b/ctr-std/src/sys/unix/thread.rs index 572ac72..a7178a3 100644 --- a/ctr-std/src/sys/unix/thread.rs +++ b/ctr-std/src/sys/unix/thread.rs @@ -18,9 +18,9 @@ use ptr; use sys_common::thread::start_thread; use time::Duration; -use libctru::svc::{svcSleepThread, svcGetThreadPriority}; -use libctru::thread::{threadCreate, threadJoin, threadFree}; -use libctru::thread::Thread as ThreadHandle; +use libctru::{svcSleepThread, svcGetThreadPriority}; +use libctru::{threadCreate, threadJoin, threadFree}; +use libctru::Thread as ThreadHandle; pub struct Thread { handle: ThreadHandle, @@ -44,7 +44,7 @@ impl Thread { priority -= 1; let handle = threadCreate(Some(thread_func), &*p as *const _ as *mut _, - stack_size, priority, -2, 0); + stack_size, priority, -2, false); return if handle == ptr::null_mut() { Err(io::Error::from_raw_os_error(libc::EAGAIN)) |