pazpar2
1.14.1
|
Go to the source code of this file.
Data Structures | |
struct | my_work_data |
stuff we work on in separate thread More... | |
Functions | |
static void | work_handler (void *vp) |
work to be carried out in separate thrad More... | |
static void | work_destroy (void *vp) |
how work is destructed More... | |
static void | test_create_destroy (void) |
see if we can create and destroy without problems More... | |
void | iochan_handler (struct iochan *i, int event) |
static void | test_for_real_work (int no_threads) |
int | main (int argc, char **argv) |
void iochan_handler | ( | struct iochan * | i, |
int | event | ||
) |
Definition at line 62 of file test_sel_thread.c.
References EVENT_INPUT, EVENT_TIMEOUT, iochan_destroy(), iochan_getdata, sel_thread_add(), sel_thread_result(), my_work_data::x, and my_work_data::y.
Referenced by test_for_real_work().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 123 of file test_sel_thread.c.
References test_create_destroy(), and test_for_real_work().
|
static |
see if we can create and destroy without problems
Definition at line 50 of file test_sel_thread.c.
References sel_thread_create(), sel_thread_destroy(), and work_handler().
Referenced by main().
|
static |
brief use the fd for something
Definition at line 102 of file test_sel_thread.c.
References EVENT_INPUT, EVENT_TIMEOUT, iochan_add(), iochan_create(), iochan_handler(), iochan_man_create(), iochan_man_destroy(), iochan_man_events(), iochan_setdata, iochan_settimeout, sel_thread_create(), sel_thread_destroy(), work_destroy(), and work_handler().
Referenced by main().
|
static |
how work is destructed
Definition at line 43 of file test_sel_thread.c.
Referenced by sel_thread_create(), and test_for_real_work().
|
static |
work to be carried out in separate thrad
Definition at line 36 of file test_sel_thread.c.
References my_work_data::x, and my_work_data::y.
Referenced by test_create_destroy(), and test_for_real_work().