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 committed 2001-08-16 19:36:29 +00:00
1 parent 7d74141380
commit 0a51f80a23
4 files changed
+14 -2

No files matched your search

+6
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
+1 -1
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;
+6
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
+1 -1
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;