119 (
const char *)
"forty-two",
"fourty-two");
126 for (
i =
NR - 2;
i >= 0; --
i) {
228 { .ub_name =
"spawn",
237 { .ub_name =
"spawn-init",
282 0,
"ut_t0_handler1");
322 pthread_join(rawthread,
NULL);
M0_INTERNAL void m0_enter_awkward(void)
static void forty_two_func(const char *s)
static void ut_t0_handler1(int arg)
M0_INTERNAL int m0_bitmap_init(struct m0_bitmap *map, size_t nr)
struct m0_ub_set m0_thread_ub
M0_INTERNAL int m0_thread_confine(struct m0_thread *q, const struct m0_bitmap *processors)
M0_INTERNAL void m0_bitmap_fini(struct m0_bitmap *map)
static struct m0_thread ubt[UB_ITER]
int m0_thread_join(struct m0_thread *q)
static void set_and_check_is_awkward(void)
static void ub_join(int i)
#define M0_THREAD_INIT(thread, TYPE, init, func, arg, namefmt,...)
M0_INTERNAL struct m0 * m0_get(void)
M0_INTERNAL int m0_thread_adopt(struct m0_thread *thread, struct m0 *instance)
static void ub_spawn(int i)
static void * adopted(void *arg)
M0_INTERNAL struct m0_thread_tls * m0_thread_tls(void)
static struct m0_thread t[NR]
static void test_adopt(void)
void test_is_awkward(void)
static void lambda_42_func(int x)
void m0_thread_fini(struct m0_thread *q)
static void ub_spawn_init(int i)
static int ub_spawn_initcall(int x)
M0_INTERNAL int m0_semaphore_init(struct m0_semaphore *semaphore, unsigned value)
void * m0_alloc(size_t size)
M0_INTERNAL bool m0_is_awkward(void)
M0_INTERNAL void m0_bitmap_set(struct m0_bitmap *map, size_t idx, bool val)
static void ub_fini(void)
M0_INTERNAL void m0_thread_shun(void)
static int ub_init(const char *opts M0_UNUSED)
static void ub_join_all(void)
static void threads_set0(void)
static int lambda_42_init(int x)
M0_INTERNAL struct m0_thread * m0_thread_self(void)
static void lambda42_func(int x)
static struct m0 instance
M0_INTERNAL void m0_exit_awkward(void)
M0_INTERNAL void m0_semaphore_down(struct m0_semaphore *semaphore)
static struct m0_semaphore synch
M0_INTERNAL void m0_semaphore_up(struct m0_semaphore *semaphore)
static int lambda42_init(int x)
static struct m0_addb2_source * s