Get it to compile
This commit is contained in:
@@ -39,19 +39,6 @@ pub const PTHREAD_PROCESS_PRIVATE: c_int = 1;
|
||||
pub const PTHREAD_SCOPE_PROCESS: c_int = 0;
|
||||
pub const PTHREAD_SCOPE_SYSTEM: c_int = 1;
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn pthread_atfork(prepare: extern "C" fn(), parent: extern "C" fn(), child: extern "C" fn()) -> c_int {
|
||||
let mut guard = pthread::FORK_HANDLERS.lock();
|
||||
|
||||
// TODO: try_reserve
|
||||
|
||||
guard.prepare.push(prepare);
|
||||
guard.child.push(child);
|
||||
guard.parent.push(parent);
|
||||
|
||||
0
|
||||
}
|
||||
|
||||
pub mod attr;
|
||||
pub use self::attr::*;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ use crate::header::time::timespec;
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub struct sched_param {
|
||||
sched_priority: c_int,
|
||||
pub sched_priority: c_int,
|
||||
}
|
||||
|
||||
pub const SCHED_FIFO: c_int = 0;
|
||||
|
||||
Reference in New Issue
Block a user