diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ipxe/process.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/ipxe/process.h b/src/include/ipxe/process.h index 7cd5b91ac..45c2af639 100644 --- a/src/include/ipxe/process.h +++ b/src/include/ipxe/process.h @@ -66,6 +66,17 @@ process_init ( struct process *process, process_add ( process ); } +/** + * Check if process is running + * + * @v process Process + * @ret running Process is running + */ +static inline __attribute__ (( always_inline )) int +process_running ( struct process *process ) { + return ( ! list_empty ( &process->list ) ); +} + /** Permanent process table */ #define PERMANENT_PROCESSES __table ( struct process, "processes" ) |
