forked from Imagelibrary/rtems
score: use reference with strict mutex
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
* Check whether the holder release the mutex in LIFO order if not return
|
* Check whether the holder release the mutex in LIFO order if not return
|
||||||
* error code.
|
* error code.
|
||||||
*/
|
*/
|
||||||
if ( _Chain_First( holder->lock_mutex ) != &mutex->queue.lock_queue ) {
|
if ( _Chain_First( &holder->lock_mutex ) != &mutex->queue.lock_queue ) {
|
||||||
mutex->nest_count++;
|
mutex->nest_count++;
|
||||||
|
|
||||||
return CORE_MUTEX_RELEASE_NOT_ORDER;
|
return CORE_MUTEX_RELEASE_NOT_ORDER;
|
||||||
|
|||||||
Reference in New Issue
Block a user