![]() |
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"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 104 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().
| void * occupy_thread | ( | void * | rest | ) |
Definition at line 85 of file ex_threads.c.
References __n_assert, LOG_DEBUG, n_log, and rest().
Referenced by main().
| void process_args | ( | int | argc, |
| char ** | argv ) |
Definition at line 43 of file ex_threads.c.
References getoptret, LOG_DEBUG, LOG_ERR, LOG_INFO, log_level, LOG_NOTICE, LOG_NULL, set_log_level(), and usage().
| void usage | ( | void | ) |
Definition at line 36 of file ex_threads.c.