aboutsummaryrefslogtreecommitdiff
path: root/ctr-std/src/sys/unix/thread.rs
diff options
context:
space:
mode:
authorRonald Kinard <[email protected]>2017-07-10 16:31:38 -0500
committerGitHub <[email protected]>2017-07-10 16:31:38 -0500
commita9ea24a372e59e63476b1469562d8361a34704c5 (patch)
treee855da3c20c021de4467b1ae35823958c3654f15 /ctr-std/src/sys/unix/thread.rs
parentMerge pull request #32 from FenrirWolf/libc-update (diff)
parentRemove rustc_private workaround (diff)
downloadarchived-ctru-rs-a9ea24a372e59e63476b1469562d8361a34704c5.tar.xz
archived-ctru-rs-a9ea24a372e59e63476b1469562d8361a34704c5.zip
Merge pull request #31 from FenrirWolf/ctrulib-update
Regenerate and reorganize ctru-sys bindings
Diffstat (limited to 'ctr-std/src/sys/unix/thread.rs')
-rw-r--r--ctr-std/src/sys/unix/thread.rs8
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))