1 |
/* Thread creation. |
/* Thread creation. |
2 |
Copyright (C) 2000, 2002 Free Software Foundation, Inc. |
Copyright (C) 2000, 2002, 2005 Free Software Foundation, Inc. |
3 |
This file is part of the GNU C Library. |
This file is part of the GNU C Library. |
4 |
|
|
5 |
The GNU C Library is free software; you can redistribute it and/or |
The GNU C Library is free software; you can redistribute it and/or |
168 |
other thread should be using this entry (we also assume that the |
other thread should be using this entry (we also assume that the |
169 |
store is atomic). */ |
store is atomic). */ |
170 |
pthread_rwlock_rdlock (&__pthread_threads_lock); |
pthread_rwlock_rdlock (&__pthread_threads_lock); |
171 |
__pthread_threads[pthread->thread] = pthread; |
__pthread_threads[pthread->thread - 1] = pthread; |
172 |
pthread_rwlock_unlock (&__pthread_threads_lock); |
pthread_rwlock_unlock (&__pthread_threads_lock); |
173 |
|
|
174 |
/* At this point it is possible to guess our pthread ID. We have to |
/* At this point it is possible to guess our pthread ID. We have to |