Skip to content

Commit d705c34

Browse files
committed
fixup! core/thread_flags_group: use portable implementation
1 parent 150db5b commit d705c34

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/thread_flags_group.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ void thread_flags_group_set(thread_flags_group_t *group, thread_flags_t mask)
4747
pid_block = bitarithm_test_and_clear(pid_block, &pid_offs);
4848
kernel_pid_t target_pid = pid_base + pid_offs;
4949
thread_t *target = thread_get(target_pid);
50+
if (!target) {
51+
DEBUG("| %02u | n/a | n/a (dead) | n/a (dead) |\n",
52+
target_pid);
53+
continue;
54+
}
5055
target->flags |= mask;
5156
thread_status_t old_status = target->status;
5257
bool awoken = thread_flags_wake(target);

0 commit comments

Comments
 (0)