aboutsummaryrefslogtreecommitdiffstats
path: root/src/chthreads.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chthreads.c')
-rw-r--r--src/chthreads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chthreads.c b/src/chthreads.c
index 990b9bdba..02c2a7044 100644
--- a/src/chthreads.c
+++ b/src/chthreads.c
@@ -253,7 +253,7 @@ void chThdExit(msg_t msg) {
chSchReadyI(list_remove(&currp->p_waiting));
#endif
#ifdef CH_USE_EXIT_EVENT
- chEvtSendI(&currp->p_exitesource);
+ chEvtBroadcastI(&currp->p_exitesource);
#endif
chSchGoSleepS(PREXIT);
}