mirror of
https://github.com/drasko/codezero.git
synced 2026-01-14 20:03:16 +01:00
Added thread_wait
modified: conts/test/main.c modified: scripts/kernel/generate_kernel_cinfo.py modified: src/api/thread.c modified: src/generic/capability.c
This commit is contained in:
@@ -447,10 +447,13 @@ struct capability *cap_match_thread(struct capability *cap,
|
||||
}
|
||||
|
||||
/* If no target and create, or vice versa, it really is a bug */
|
||||
BUG_ON(!target && action_flags != THREAD_CREATE);
|
||||
BUG_ON(target && action_flags == THREAD_CREATE);
|
||||
BUG_ON(!target && (action_flags != THREAD_CREATE &&
|
||||
action_flags != THREAD_WAIT));
|
||||
BUG_ON(target && (action_flags == THREAD_CREATE ||
|
||||
action_flags == THREAD_WAIT));
|
||||
|
||||
if (action_flags == THREAD_CREATE) {
|
||||
if (action_flags == THREAD_CREATE ||
|
||||
action_flags == THREAD_WAIT) {
|
||||
/*
|
||||
* FIXME: Add cid to task_ids arg.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user