mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08: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 parent
7d74141380
commit
0a51f80a23
4 files changed
+14
-2
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
@@ -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