summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/psignal.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-18 16:22:54 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-22 16:45:59 +0200
commit5f7757b05bf11543517ab2ed63543bef931f5351 (patch)
tree1841fb7032ae25f0ee629d65e96ed89bf0dd850d /cpukit/posix/src/psignal.c
parentrtems: Use _Thread_Get_executing() (diff)
downloadrtems-5f7757b05bf11543517ab2ed63543bef931f5351.tar.bz2
posix: Use _Thread_Get_executing()
Diffstat (limited to 'cpukit/posix/src/psignal.c')
-rw-r--r--cpukit/posix/src/psignal.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/posix/src/psignal.c b/cpukit/posix/src/psignal.c
index bc4a0f64a8..eeee127f47 100644
--- a/cpukit/posix/src/psignal.c
+++ b/cpukit/posix/src/psignal.c
@@ -118,14 +118,16 @@ static void _POSIX_signals_Post_switch_hook(
int signo;
ISR_Level level;
int hold_errno;
+ Thread_Control *executing;
+ executing = _Thread_Get_executing();
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
/*
* We need to ensure that if the signal handler executes a call
* which overwrites the unblocking status, we restore it.
*/
- hold_errno = _Thread_Executing->Wait.return_code;
+ hold_errno = executing->Wait.return_code;
/*
* api may be NULL in case of a thread close in progress
@@ -162,7 +164,7 @@ static void _POSIX_signals_Post_switch_hook(
}
}
- _Thread_Executing->Wait.return_code = hold_errno;
+ executing->Wait.return_code = hold_errno;
}
API_extensions_Post_switch_control _POSIX_signals_Post_switch = {