Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
2003-06-09  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
	(__pthread_cond_signal): Some more tweaks to handle cond_lock!=0.
  • Loading branch information
Ulrich Drepper committed Jun 9, 2003
1 parent eae59a5 commit b172034
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions nptl/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2003-06-09 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
(__pthread_cond_signal): Some more tweaks to handle cond_lock!=0.

2003-06-08 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/s390/sem_wait.c (__new_sem_wait): Make
Expand Down
10 changes: 5 additions & 5 deletions nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ __pthread_cond_signal:
movl total_seq+4(%edi), %eax
movl total_seq(%edi), %ecx
cmpl 4(%ebx), %eax
#if cond_lock != 0
leal cond_lock(%edi), %edi
#endif
ja 3f
jb 4f
cmpl (%ebx), %ecx
Expand All @@ -90,13 +93,10 @@ __pthread_cond_signal:
testl %eax, %eax
jne 5f

/* Unlock. */
/* Unlock. Note that at this point %edi always points to
cond_lock. */
4: LOCK
#if cond_lock == 0
subl $1, (%edi)
#else
subl $1, cond_lock(%edi)
#endif
jne 5f

6: xorl %eax, %eax
Expand Down

0 comments on commit b172034

Please sign in to comment.