pthread_wip

This commit is contained in:
2017-10-16 10:28:24 +00:00
parent 0686959e93
commit f64c80da9a
18 changed files with 96 additions and 29 deletions

View File

@@ -49,7 +49,9 @@ __strong_alias(__libc_thr_setspecific,pthread_setspecific)
__strong_alias(__libc_thr_getspecific,pthread_getspecific)
__strong_alias(__libc_thr_curcpu,pthread_curcpu_np)
#if !defined(__minix)
__strong_alias(setcontext,pthread_setcontext)
#endif /* !defined(__minix) */
int
pthread_setspecific(pthread_key_t key, const void *value)
@@ -94,6 +96,7 @@ pthread_curcpu_np(void)
}
}
#if !defined(__minix)
/*
* Override setcontext so that pthread private pointer is preserved
*/
@@ -113,3 +116,4 @@ pthread_setcontext(const ucontext_t *ucp)
#endif /* _UC_TLSBASE */
return _sys_setcontext(ucp);
}
#endif /* !defined(__minix) */