Motr  M0
thread_pool.h File Reference
#include "lib/queue.h"
#include "lib/mutex.h"
#include "lib/thread.h"
#include "lib/semaphore.h"
Include dependency graph for thread_pool.h:

Go to the source code of this file.

Data Structures

struct  m0_parallel_pool
 

Macros

#define __MOTR_LIB_THREAD_POOL_H__
 
#define M0_PARALLEL_FOR(name, pool, list, process)
 

Functions

M0_INTERNAL int m0_parallel_pool_init (struct m0_parallel_pool *pool, int thread_nr, int qlinks_nr)
 
M0_INTERNAL void m0_parallel_pool_fini (struct m0_parallel_pool *pool)
 
M0_INTERNAL int m0_parallel_pool_job_add (struct m0_parallel_pool *pool, void *item)
 
M0_INTERNAL int m0_parallel_pool_wait (struct m0_parallel_pool *pool)
 
M0_INTERNAL void m0_parallel_pool_start (struct m0_parallel_pool *pool, int(*process)(void *job))
 
M0_INTERNAL void m0_parallel_pool_terminate_wait (struct m0_parallel_pool *pool)
 
M0_INTERNAL int m0_parallel_pool_rc_next (struct m0_parallel_pool *pool, void **job, int *rc)
 

Macro Definition Documentation

◆ __MOTR_LIB_THREAD_POOL_H__

#define __MOTR_LIB_THREAD_POOL_H__

Definition at line 26 of file thread_pool.h.