Motr
M0
|
#include "ut/ut.h"
#include "lib/errno.h"
#include "lib/tlist.h"
#include "lib/atomic.h"
#include "lib/thread_pool.h"
Go to the source code of this file.
Data Structures | |
struct | tpool_test |
Functions | |
M0_TL_DESCR_DEFINE (tpt, "tpt-s", static, struct tpool_test, t_linkage, t_magic, 0x1111111111111111, 0x1111111111111111) | |
M0_TL_DEFINE (tpt, static, struct tpool_test) | |
static int | thread_pool_process (void *item) |
static void | thread_pool_init (struct m0_parallel_pool *pool) |
static void | small_thread_pool_init (struct m0_parallel_pool *pool) |
static void | thread_pool_fini (struct m0_parallel_pool *pool) |
static void | feed (struct m0_parallel_pool *pool, bool err_test) |
static void | simple_thread_pool_test (struct m0_parallel_pool *pool) |
static void | parallel_for_pool_test (struct m0_parallel_pool *pool) |
static void | simple_thread_pool_error_test (struct m0_parallel_pool *pool) |
void | m0_ut_lib_thread_pool_test (void) |
Variables | |
static const int | ROUNDS_NR = 200 |
static const int | THREAD_NR = 10 |
static const int | QLINKS_NR = 10 |
static uint64_t | test_counts = 0 |
static struct m0_atomic64 | counts |
struct tpool_test | test [] |
struct tpool_test | error_test [] |
|
static |
Definition at line 88 of file thread_pool.c.
M0_TL_DEFINE | ( | tpt | , |
static | , | ||
struct tpool_test | |||
) |
M0_TL_DESCR_DEFINE | ( | tpt | , |
"tpt-s" | , | ||
static | , | ||
struct tpool_test | , | ||
t_linkage | , | ||
t_magic | , | ||
0x1111111111111111 | , | ||
0x1111111111111111 | |||
) |
void m0_ut_lib_thread_pool_test | ( | void | ) |
|
static |
Definition at line 119 of file thread_pool.c.
|
static |
Definition at line 146 of file thread_pool.c.
|
static |
Definition at line 104 of file thread_pool.c.
|
static |
Definition at line 74 of file thread_pool.c.
|
static |
Definition at line 82 of file thread_pool.c.
|
static |
Definition at line 66 of file thread_pool.c.
|
static |
Definition at line 56 of file thread_pool.c.
|
static |
Definition at line 34 of file thread_pool.c.
struct tpool_test error_test[] |
Definition at line 49 of file thread_pool.c.
|
static |
Definition at line 31 of file thread_pool.c.
|
static |
Definition at line 29 of file thread_pool.c.
|
static |
Definition at line 33 of file thread_pool.c.
|
static |
Definition at line 30 of file thread_pool.c.