Added pthread_self emscripten method

This commit is contained in:
Syrus 2019-07-06 17:41:03 -07:00
parent b1f868dc52
commit f5af920724
2 changed files with 5 additions and 0 deletions

View File

@ -161,6 +161,10 @@ pub fn _pthread_join(_ctx: &mut Ctx, _a: i32, _b: i32) -> i32 {
trace!("emscripten::_pthread_join");
0
}
pub fn _pthread_self(_ctx: &mut Ctx) -> i32 {
trace!("emscripten::_pthread_self");
0
}
pub fn _pthread_key_create(_ctx: &mut Ctx, _a: i32, _b: i32) -> i32 {
trace!("emscripten::_pthread_key_create");
0

View File

@ -884,6 +884,7 @@ pub fn generate_emscripten_env(globals: &mut EmscriptenGlobals) -> ImportObject
"_pthread_detach" => func!(crate::emscripten_target::_pthread_detach),
"_pthread_equal" => func!(crate::emscripten_target::_pthread_equal),
"_pthread_exit" => func!(crate::emscripten_target::_pthread_exit),
"_pthread_self" => func!(crate::emscripten_target::_pthread_self),
"_pthread_getattr_np" => func!(crate::emscripten_target::_pthread_getattr_np),
"_pthread_getspecific" => func!(crate::emscripten_target::_pthread_getspecific),
"_pthread_join" => func!(crate::emscripten_target::_pthread_join),