pazpar2  1.14.1
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 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)
 

Function Documentation

◆ iochan_handler()

void iochan_handler ( struct iochan i,
int  event 
)

◆ main()

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

◆ test_create_destroy()

static void test_create_destroy ( void  )
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().

◆ test_for_real_work()

static void test_for_real_work ( int  no_threads)
static

◆ work_destroy()

static void work_destroy ( void *  vp)
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().

◆ work_handler()

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