Motr  M0
thread.h File Reference
#include "lib/user_space/thread.h"
#include "lib/semaphore.h"
#include "lib/list.h"
#include "addb2/counter.h"
Include dependency graph for thread.h:

Go to the source code of this file.

Data Structures

struct  m0_thread_tls
 
struct  m0_thread
 

Macros

#define __MOTR_LIB_THREAD_H__
 
#define M0_THREAD_INIT(thread, TYPE, init, func, arg, namefmt, ...)
 

Enumerations

enum  m0_thread_state { TS_PARKED = 0, TS_RUNNING }
 

Functions

M0_INTERNAL int m0_thread_init_impl (struct m0_thread *q, const char *name)
 
M0_INTERNAL void * m0_thread_trampoline (void *arg)
 
int m0_thread_init (struct m0_thread *q, int(*init)(void *), void(*func)(void *), void *arg, const char *namefmt,...)
 
void m0_thread_fini (struct m0_thread *q)
 
int m0_thread_join (struct m0_thread *q)
 
M0_INTERNAL int m0_thread_signal (struct m0_thread *q, int sig)
 
M0_INTERNAL int m0_thread_confine (struct m0_thread *q, const struct m0_bitmap *processors)
 
M0_INTERNAL struct m0_threadm0_thread_self (void)
 
M0_INTERNAL struct m0_thread_tlsm0_thread_tls (void)
 
M0_INTERNAL int m0_threads_init (struct m0 *instance)
 
M0_INTERNAL void m0_threads_fini (void)
 
M0_INTERNAL int m0_threads_once_init (void)
 
M0_INTERNAL void m0_threads_once_fini (void)
 
M0_INTERNAL void m0_enter_awkward (void)
 
M0_INTERNAL void m0_exit_awkward (void)
 
M0_INTERNAL bool m0_is_awkward (void)
 
M0_INTERNAL uint64_t m0_pid (void)
 
M0_INTERNAL uint64_t m0_process (void)
 
M0_INTERNAL int m0_thread_adopt (struct m0_thread *thread, struct m0 *instance)
 
M0_INTERNAL void m0_thread_shun (void)
 
M0_INTERNAL int m0_thread_arch_adopt (struct m0_thread *thread, struct m0 *instance, bool full)
 
M0_INTERNAL void m0_thread_arch_shun (void)
 

Variables

struct m0_thread_tls M0_XCA_DOMAIN
 

Macro Definition Documentation

◆ __MOTR_LIB_THREAD_H__

#define __MOTR_LIB_THREAD_H__

Definition at line 26 of file thread.h.