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:
Joel Sherrill
2001-08-16 19:36:29 +00:00
parent 7d74141380
commit 0a51f80a23
4 changed files with 14 additions and 2 deletions

View File

@@ -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

View File

@@ -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;