diff options
author | rpj <rpj> | 1998-07-29 01:43:47 +0000 |
---|---|---|
committer | rpj <rpj> | 1998-07-29 01:43:47 +0000 |
commit | 0379281c3fc3bedede0177d43871ae5b1006eef7 (patch) | |
tree | 2225cae1200d5508d0a0264c542c87e397d51894 /private.c | |
parent | eca19329e11c472df9b62da0a643de6f90bb7f46 (diff) |
Wed Jul 29 11:39:03 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* cleanup.c (_pthread_handler_push): Same as below.
* create.c (pthread_create): Same as below.
* private.c (_pthread_new_thread): Rename "new" to "new_thread".
Since when has a C programmer been required to know C++?
Diffstat (limited to 'private.c')
-rw-r--r-- | private.c | 34 |
1 files changed, 17 insertions, 17 deletions
@@ -99,7 +99,7 @@ int _pthread_new_thread(pthread_t * thread) { - pthread_t new; + pthread_t new_thread; if (_pthread_reuse_top == -1) { @@ -109,28 +109,28 @@ _pthread_new_thread(pthread_t * thread) } else { - new = _pthread_virgin[_pthread_virgin_next++]; + new_thread = _pthread_virgin[_pthread_virgin_next++]; } } else { - new = _pthread_reuse[_pthread_reuse_top--]; + new_thread = _pthread_reuse[_pthread_reuse_top--]; } - new->win32handle = NULL; - new->ptstatus = _PTHREAD_NEW; - pthread_attr_init(&(new->attr)); - new->joinvalueptr = NULL; - new->cancelstate = PTHREAD_CANCEL_ENABLE; - new->canceltype = PTHREAD_CANCEL_DEFERRED; - new->cancel_pending = FALSE; - new->cleanupstack = NULL; - new->destructorstack = NULL; - new->forkpreparestack = NULL; - new->forkparentstack = NULL; - new->forkchildstack = NULL; - - *thread = new; + new_thread->win32handle = NULL; + new_thread->ptstatus = _PTHREAD_NEW; + pthread_attr_init(&(new_thread->attr)); + new_thread->joinvalueptr = NULL; + new_thread->cancelstate = PTHREAD_CANCEL_ENABLE; + new_thread->canceltype = PTHREAD_CANCEL_DEFERRED; + new_thread->cancel_pending = FALSE; + new_thread->cleanupstack = NULL; + new_thread->destructorstack = NULL; + new_thread->forkpreparestack = NULL; + new_thread->forkparentstack = NULL; + new_thread->forkchildstack = NULL; + + *thread = new_thread; return 0; } |