Motr  M0
st_worker.c File Reference
#include "motr/st/st_misc.h"
#include "motr/st/st.h"
#include <stdint.h>
#include <errno.h>
#include <pthread.h>
#include "lib/thread.h"
Include dependency graph for st_worker.c:

Go to the source code of this file.

Typedefs

typedef pthread_t st_thread_t
 

Functions

static int thread_init (st_thread_t **ret_th, void *(*func)(void *), void *args,...)
 
void thread_exit (void)
 
static int thread_join (st_thread_t *th)
 
static void thread_fini (st_thread_t *th)
 
static void * st_worker (void *in)
 
int st_start_workers (void)
 
int st_stop_workers (void)
 

Variables

static st_thread_t ** workers = NULL
 

Typedef Documentation

◆ st_thread_t

typedef pthread_t st_thread_t

Definition at line 98 of file st_worker.c.

Function Documentation

◆ st_worker()

static void* st_worker ( void *  in)
static

Definition at line 149 of file st_worker.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ thread_exit()

void thread_exit ( void  )

Definition at line 118 of file st_worker.c.

Here is the caller graph for this function:

◆ thread_fini()

static void thread_fini ( st_thread_t th)
static

Definition at line 136 of file st_worker.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ thread_init()

static int thread_init ( st_thread_t **  ret_th,
void *(*)(void *)  func,
void *  args,
  ... 
)
static

Definition at line 101 of file st_worker.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ thread_join()

static int thread_join ( st_thread_t th)
static

Definition at line 123 of file st_worker.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ workers

st_thread_t** workers = NULL
static

Definition at line 99 of file st_worker.c.