pazpar2  1.13.0
Data Structures | Functions
test_sel_thread.c File Reference
#include "sel_thread.h"
#include "eventl.h"
#include <yaz/test.h>
#include <yaz/xmalloc.h>

Go to the source code of this file.

Data Structures

struct  my_work_data
 stuff we work on in separate th


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)

Function Documentation

void iochan_handler ( struct iochan i,
int  event 
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 void test_create_destroy ( void  )

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 void test_for_real_work ( int  no_threads)
static void work_destroy ( void *  vp)

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 void work_handler ( void *  vp)

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().