diff options
Diffstat (limited to 'libpthread/linuxthreads/queue.h')
-rw-r--r-- | libpthread/linuxthreads/queue.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpthread/linuxthreads/queue.h b/libpthread/linuxthreads/queue.h index 01d18d16e..e50517f77 100644 --- a/libpthread/linuxthreads/queue.h +++ b/libpthread/linuxthreads/queue.h @@ -21,6 +21,7 @@ static __inline__ void enqueue(pthread_descr * q, pthread_descr th) { int prio = th->p_priority; + ASSERT(th->p_nextwaiting == NULL); for (; *q != NULL; q = &((*q)->p_nextwaiting)) { if (prio > (*q)->p_priority) { th->p_nextwaiting = *q; |