Skip to content

Commit

Permalink
Fixed feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Sssssaltyfish committed Apr 17, 2024
1 parent 363aff4 commit 62ce8ec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/ruxos_posix_api/src/imp/pthread/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl Pthread {
}

/// Posix create, used by musl libc
#[cfg(all(feature = "musl"))]
#[cfg(feature = "musl")]
fn pcreate(
_attr: *const ctypes::pthread_attr_t,
start_routine: extern "C" fn(arg: *mut c_void) -> *mut c_void,
Expand Down Expand Up @@ -246,7 +246,10 @@ unsafe impl<T> Send for ForceSendSync<T> {}
unsafe impl<T> Sync for ForceSendSync<T> {}

/// Create new thread by `sys_clone`, return new thread ID
#[cfg(all(feature = "musl"))]
#[cfg(all(
feature = "musl",
any(target_arch = "aarch64", target_arch = "riscv64")
))]
pub unsafe fn sys_clone(
flags: c_int,
stack: *mut c_void,
Expand Down

0 comments on commit 62ce8ec

Please sign in to comment.