diff options
author | rpj <rpj> | 2000-08-17 10:18:36 +0000 |
---|---|---|
committer | rpj <rpj> | 2000-08-17 10:18:36 +0000 |
commit | a366b6d8c2e6debf247c82af3d41aa2483711c52 (patch) | |
tree | e2a2f6785897a8789f88403e99d4f03dce301607 /misc.c | |
parent | 951895c3aa196e90d4a5ecefe337d8773b8d33b7 (diff) |
2000-08-17 Ross Johnson <rpj@special.ise.canberra.edu.au>
* All applicable: Change _pthread_ prefix to
ptw32_ prefix to remove leading underscores
from private library identifiers (single
and double leading underscores are reserved in the
ANSI C standard for compiler implementations).
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -147,14 +147,14 @@ pthread_self (void) * need to ensure there always is a self */ - if ((self = (pthread_t) pthread_getspecific (_pthread_selfThreadKey)) + if ((self = (pthread_t) pthread_getspecific (ptw32_selfThreadKey)) == NULL) { /* * Need to create an implicit 'self' for the currently * executing thread. */ - self = _pthread_new(); + self = ptw32_new(); if (self != NULL) { @@ -195,7 +195,7 @@ pthread_self (void) #endif } - pthread_setspecific (_pthread_selfThreadKey, self); + pthread_setspecific (ptw32_elfThreadKey, self); } return (self); @@ -260,7 +260,7 @@ CancelableWait (HANDLE waitHandle, DWORD timeout) handles[0] = waitHandle; - if ((self = (pthread_t) pthread_getspecific (_pthread_selfThreadKey)) + if ((self = (pthread_t) pthread_getspecific (ptw32_selfThreadKey)) != NULL) { /* @@ -381,7 +381,7 @@ pthreadCancelableTimedWait (HANDLE waitHandle, DWORD timeout) pthread_t -_pthread_new (void) +ptw32_new (void) { pthread_t t; @@ -402,7 +402,7 @@ _pthread_new (void) #ifdef NEED_CALLOC void * -_pthread_calloc(size_t n, size_t s) { +ptw32_calloc(size_t n, size_t s) { unsigned int m = n*s; void *p; |