mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 22:48:23 +00:00
2001-08-16 Joel Sherrill <joel@OARcorp.com>
* src/coremutexsurrender.c: Use holder thread not executing thread because even though they may and often are the same it is not guaranteed unless the proper attribute is set.
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
|
||||
2001-08-16 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* src/coremutexsurrender.c: Use holder thread not executing
|
||||
thread because even though they may and often are the same
|
||||
it is not guaranteed unless the proper attribute is set.
|
||||
|
||||
2001-08-16 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* include/rtems/score/coremsg.h, src/coremsgsubmit.c: Add a new
|
||||
|
||||
@@ -86,7 +86,7 @@ CORE_mutex_Status _CORE_mutex_Surrender(
|
||||
}
|
||||
}
|
||||
|
||||
_Thread_Executing->resource_count--;
|
||||
holder->resource_count--;
|
||||
the_mutex->holder = NULL;
|
||||
the_mutex->holder_id = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user