Opened 6 years ago

Closed 6 years ago

#205 closed defect (fixed)

pthread: pthread_rwlock_trywrlock() return 0 even if the other thread already acquired rdlock

Reported by: KO Myung-Hun Owned by:
Priority: major Milestone:
Component: *none Version:
Severity: medium Keywords:
Cc:

Description

Hi/2.

pthread_rwlock_trywrlock() should return EBUSY when the other thread already had a rdlock or a wrlock.

Attachments (1)

trywrlock_ebusy.diff (291 bytes ) - added by KO Myung-Hun 6 years ago.
Patch for pthread_rwlock_trywrlock() returning 0 even if the other thread already had lock

Download all attachments as: .zip

Change History (2)

by KO Myung-Hun, 6 years ago

Attachment: trywrlock_ebusy.diff added

Patch for pthread_rwlock_trywrlock() returning 0 even if the other thread already had lock

comment:1 by Silvan Scherrer, 6 years ago

Resolution: fixed
Status: newclosed

fixed in r2329
thx for the patch

Note: See TracTickets for help on using tickets.