diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-06-10 04:02:40 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-06-10 04:02:40 -0400 |
commit | df15168cf8baf34fb9c94e19eaa1a5c79c853970 (patch) | |
tree | 83a61274604cb4b4ed65e617d03d687666cb84c3 /src/thread/cancel_impl.c | |
parent | 64e32287f9d8a84217834bcc3387e9431cad9e4c (diff) | |
download | musl-df15168cf8baf34fb9c94e19eaa1a5c79c853970.tar.gz musl-df15168cf8baf34fb9c94e19eaa1a5c79c853970.tar.bz2 musl-df15168cf8baf34fb9c94e19eaa1a5c79c853970.tar.xz musl-df15168cf8baf34fb9c94e19eaa1a5c79c853970.zip |
replace all remaining internal uses of pthread_self with __pthread_self
prior to version 1.1.0, the difference between pthread_self (the
public function) and __pthread_self (the internal macro or inline
function) was that the former would lazily initialize the thread
pointer if it was not already initialized, whereas the latter would
crash in this case. since lazy initialization is no longer supported,
use of pthread_self no longer makes sense; it simply generates larger,
slower code.
Diffstat (limited to 'src/thread/cancel_impl.c')
-rw-r--r-- | src/thread/cancel_impl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/cancel_impl.c b/src/thread/cancel_impl.c index 525d2904..41cf2b8c 100644 --- a/src/thread/cancel_impl.c +++ b/src/thread/cancel_impl.c @@ -58,7 +58,7 @@ static void cancel_handler(int sig, siginfo_t *si, void *ctx) void __testcancel() { if (!libc.has_thread_pointer) return; - pthread_t self = pthread_self(); + pthread_t self = __pthread_self(); if (self->cancel && !self->canceldisable) __cancel(); } |