mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
1999-11-23 Ulrich Drepper <drepper@cygnus.com> * manager.c (pthread_start_thread_event): Initialize p_pid already here.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
1999-11-23 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* manager.c (pthread_start_thread_event): Initialize p_pid already
|
||||||
|
here.
|
||||||
|
|
||||||
1999-11-22 Ulrich Drepper <drepper@cygnus.com>
|
1999-11-22 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* internals.h: Add prototype for __pthread_manager_event.
|
* internals.h: Add prototype for __pthread_manager_event.
|
||||||
|
@ -252,6 +252,9 @@ static int pthread_start_thread_event(void *arg)
|
|||||||
#ifdef INIT_THREAD_SELF
|
#ifdef INIT_THREAD_SELF
|
||||||
INIT_THREAD_SELF(self, self->p_nr);
|
INIT_THREAD_SELF(self, self->p_nr);
|
||||||
#endif
|
#endif
|
||||||
|
/* Make sure our pid field is initialized, just in case we get there
|
||||||
|
before our father has initialized it. */
|
||||||
|
THREAD_SETMEM(self, p_pid, __getpid());
|
||||||
/* Get the lock the manager will free once all is correctly set up. */
|
/* Get the lock the manager will free once all is correctly set up. */
|
||||||
__pthread_lock (THREAD_GETMEM(self, p_lock), NULL);
|
__pthread_lock (THREAD_GETMEM(self, p_lock), NULL);
|
||||||
/* Free it immediately. */
|
/* Free it immediately. */
|
||||||
|
Reference in New Issue
Block a user