diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-08-16 19:36:29 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-08-16 19:36:29 +0000 |
commit | 0a51f80a23ce4c751f142bc18845e98e20d2f71f (patch) | |
tree | d36d509dc9a047024830fa481b9d9bcf28e78034 /c/src | |
parent | 2001-08-16 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-0a51f80a23ce4c751f142bc18845e98e20d2f71f.tar.bz2 |
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.
Diffstat (limited to 'c/src')
-rw-r--r-- | c/src/exec/score/ChangeLog | 6 | ||||
-rw-r--r-- | c/src/exec/score/src/coremutexsurrender.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/c/src/exec/score/ChangeLog b/c/src/exec/score/ChangeLog index a8f2400ae3..c4c1661775 100644 --- a/c/src/exec/score/ChangeLog +++ b/c/src/exec/score/ChangeLog @@ -1,6 +1,12 @@ 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 return status to account for blocking sends. Otherwise, the caller will think that the returned message status will have diff --git a/c/src/exec/score/src/coremutexsurrender.c b/c/src/exec/score/src/coremutexsurrender.c index 7638ad316a..f60faba558 100644 --- a/c/src/exec/score/src/coremutexsurrender.c +++ b/c/src/exec/score/src/coremutexsurrender.c @@ -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; |