Logo
Explore Help
Sign In
fluencelabs/musl
1
0
Fork 0
You've already forked musl
mirror of https://github.com/fluencelabs/musl synced 2025-06-16 00:11:36 +00:00
Code Issues Projects Releases Wiki Activity
Files
b7cf71a190813590860af25b32532b6c360ac502
musl/src/thread/pthread_getspecific.c

10 lines
204 B
C
Raw Normal View History

initial check-in, version 0.5.0
2011-02-12 00:22:29 -05:00
#include "pthread_impl.h"
use weak symbols for the POSIX functions that will be used by C threads The intent of this is to avoid name space pollution of the C threads implementation. This has two sides to it. First we have to provide symbols that wouldn't pollute the name space for the C threads implementation. Second we have to clean up some internal uses of POSIX functions such that they don't implicitly drag in such symbols.
2014-09-01 00:46:23 +02:00
static void *__pthread_getspecific(pthread_key_t k)
initial check-in, version 0.5.0
2011-02-12 00:22:29 -05:00
{
optimize POSIX TSD for fast pthread_getspecific
2011-03-03 18:30:44 -05:00
struct pthread *self = __pthread_self();
initial check-in, version 0.5.0
2011-02-12 00:22:29 -05:00
return self->tsd[k];
}
use weak symbols for the POSIX functions that will be used by C threads The intent of this is to avoid name space pollution of the C threads implementation. This has two sides to it. First we have to provide symbols that wouldn't pollute the name space for the C threads implementation. Second we have to clean up some internal uses of POSIX functions such that they don't implicitly drag in such symbols.
2014-09-01 00:46:23 +02:00
weak_alias(__pthread_getspecific, pthread_getspecific);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.0 Page: 285ms Template: 24ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API