Get it to compile

This commit is contained in:
4lDO2
2023-03-05 16:34:53 +01:00
parent 558d43082c
commit 2593101ea7
7 changed files with 65 additions and 51 deletions
-13
View File
@@ -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::*;