[RTEMS Project] #2719: pthread_spin_unlock() returns wrong error status in case the lock is unlocked
RTEMS trac
trac at rtems.org
Wed May 25 06:32:33 UTC 2016
#2719: pthread_spin_unlock() returns wrong error status in case the lock is
unlocked
-----------------------------+--------------------
Reporter: sebastian.huber | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 4.10.3
Component: General | Version: 4.10
Severity: normal | Keywords:
-----------------------------+--------------------
POSIX recommends the following:
"If an implementation detects that the value specified by the lock
argument to pthread_spin_unlock() refers to a spin lock object for which
the current thread does not hold the lock, it is recommended that the
function should fail and report an [EPERM] error."
http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_spin_unlock.html
In case the lock is unlocked, then there is no owner, thus the executing
thread is not the owner of the lock.
--
Ticket URL: <http://devel.rtems.org/ticket/2719>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list