diff options
author | Richard Braun <rbraun@sceen.net> | 2017-06-03 14:20:13 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-06-03 14:20:13 +0200 |
commit | 1b902346ce502870329bda19d92d317a21cab56e (patch) | |
tree | 45f7d5702e0320047966a1fdd903917730f25627 /kern/work.c | |
parent | 77bb91faa0059b157220ef2e1732bdf89618a375 (diff) |
kern/thread: improve thread_wakeup robustness
Diffstat (limited to 'kern/work.c')
-rw-r--r-- | kern/work.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kern/work.c b/kern/work.c index 738ab8b6..6c0ed626 100644 --- a/kern/work.c +++ b/kern/work.c @@ -259,9 +259,7 @@ work_pool_wakeup_manager(struct work_pool *pool) return; } - if ((pool->manager != NULL) && (pool->manager->thread != thread_self())) { - thread_wakeup(pool->manager->thread); - } + thread_wakeup(pool->manager->thread); } static void |