37 #define OS_THREAD_MAX_N srv_max_n_threads
41 #define OS_THREAD_PRIORITY_NONE 100
42 #define OS_THREAD_PRIORITY_BACKGROUND 1
43 #define OS_THREAD_PRIORITY_NORMAL 2
44 #define OS_THREAD_PRIORITY_ABOVE_NORMAL 3
47 typedef void* os_thread_t;
52 typedef pthread_t os_thread_t;
59 typedef void* (*os_posix_f_t) (
void*);
61 #ifdef HAVE_PSI_INTERFACE
63 typedef unsigned int mysql_pfs_key_t;
98 ulint (*start_f)(
void*),
165 #include "os0thread.ic"
UNIV_INTERN void os_thread_set_priority(os_thread_t handle, ulint pri)
UNIV_INTERN os_thread_t os_thread_create(os_posix_f_t start_f, void *arg, os_thread_id_t *thread_id)
UNIV_INTERN os_thread_t os_thread_get_curr(void)
UNIV_INTERN ulint os_thread_get_last_error(void)
UNIV_INTERN void os_thread_yield(void)
UNIV_INTERN void os_thread_sleep(ulint tm)
os_thread_t os_thread_id_t
UNIV_INTERN ulint os_thread_get_priority(os_thread_t handle)
UNIV_INTERN os_thread_id_t os_thread_get_curr_id(void)
UNIV_INTERN void os_thread_exit(void *exit_value)
UNIV_INTERN ulint os_thread_pf(os_thread_id_t a)
UNIV_INTERN ibool os_thread_eq(os_thread_id_t a, os_thread_id_t b)