]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Added p_nextlock entry to separate queueing for a lock from queueing
authorUlrich Drepper <drepper@redhat.com>
Fri, 9 Jul 1999 13:46:33 +0000 (13:46 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 9 Jul 1999 13:46:33 +0000 (13:46 +0000)
for a CV (sometimes a thread queues on a lock to serialize removing
itself from a CV queue).

linuxthreads/internals.h

index cfd72cda728e2ac3036ed253ef1fd351fb8f97b4..070150fa5ddbc5d4749d9348e14c256106b8ede2 100644 (file)
@@ -74,6 +74,7 @@ struct _pthread_descr_struct {
   pthread_descr p_nextlive, p_prevlive;
                                 /* Double chaining of active threads */
   pthread_descr p_nextwaiting;  /* Next element in the queue holding the thr */
+  pthread_descr p_nextlock;    /* can be on a queue and waiting on a lock */
   pthread_t p_tid;              /* Thread identifier */
   int p_pid;                    /* PID of Unix process */
   int p_priority;               /* Thread priority (== 0 if not realtime) */