![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
#include <stdio.h>#include <errno.h>#include <string.h>#include "nilorea/n_log.h"#include "nilorea/n_time.h"#include "nilorea/n_thread_pool.h"
Include dependency graph for ex_threads.c:Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
| void * | occupy_thread (void *rest) |
| void | process_args (int argc, char **argv) |
| void | usage (void) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 103 of file ex_threads.c.
References add_threaded_process(), destroy_threaded_pool(), get_nb_cpu_cores(), LOG_ERR, LOG_INFO, n_log, new_thread_pool(), NORMAL_PROC, occupy_thread(), process_args(), refresh_thread_pool(), set_log_level(), start_threaded_pool(), SYNCED_PROC, thread_pool, wait_for_synced_threaded_pool(), and wait_for_threaded_pool().
Here is the call graph for this function:| void * occupy_thread | ( | void * | rest | ) |
Definition at line 84 of file ex_threads.c.
References __n_assert, LOG_DEBUG, and n_log.
Referenced by main().
Here is the caller graph for this function:| void process_args | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 42 of file ex_threads.c.
References getoptret, LOG_DEBUG, LOG_ERR, LOG_INFO, log_level, LOG_NOTICE, LOG_NULL, set_log_level(), and usage().
Here is the call graph for this function:| void usage | ( | void | ) |
Definition at line 35 of file ex_threads.c.