From 0a51f80a23ce4c751f142bc18845e98e20d2f71f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 16 Aug 2001 19:36:29 +0000 Subject: 2001-08-16 Joel Sherrill * 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. --- cpukit/score/src/coremutexsurrender.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/score/src/coremutexsurrender.c') diff --git a/cpukit/score/src/coremutexsurrender.c b/cpukit/score/src/coremutexsurrender.c index 7638ad316a..f60faba558 100644 --- a/cpukit/score/src/coremutexsurrender.c +++ b/cpukit/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; -- cgit v1.2.3