summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/sync.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-19 17:16:58 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-22 16:46:00 +0200
commitd566f33e67969fd9a5c1dfdfc868d7b3f5d6655e (patch)
treeb6f4d68df9658524282cc999a2558561c322cd70 /cpukit/libcsupport/src/sync.c
parenttestsuites: Use _Thread_Get_executing() (diff)
downloadrtems-d566f33e67969fd9a5c1dfdfc868d7b3f5d6655e.tar.bz2
libcsupport: Use _Thread_Get_executing()
Diffstat (limited to 'cpukit/libcsupport/src/sync.c')
-rw-r--r--cpukit/libcsupport/src/sync.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/libcsupport/src/sync.c b/cpukit/libcsupport/src/sync.c
index 2e8386754c..6cb6a2807d 100644
--- a/cpukit/libcsupport/src/sync.c
+++ b/cpukit/libcsupport/src/sync.c
@@ -65,10 +65,11 @@ static void sync_per_thread(Thread_Control *t)
*/
this_reent = t->libc_reent;
if ( this_reent ) {
- current_reent = _Thread_Executing->libc_reent;
- _Thread_Executing->libc_reent = this_reent;
+ Thread_Control *executing = _Thread_Get_executing();
+ current_reent = executing->libc_reent;
+ executing->libc_reent = this_reent;
_fwalk (t->libc_reent, sync_wrapper);
- _Thread_Executing->libc_reent = current_reent;
+ executing->libc_reent = current_reent;
}
}