30 #define MAX_THREADPOOL_SIZE 1024
238 memcpy(&
once, &child_once,
sizeof(child_once));
331 if (
req->after_work_cb ==
NULL)
347 req->work_cb = work_cb;
348 req->after_work_cb = after_work_cb;
static mcore_handle handle
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec req
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
static const char struct stat static buf struct stat static buf static vhangup int status
#define QUEUE_DATA(ptr, type, field)
#define QUEUE_INSERT_TAIL(h, q)
#define container_of(ptr, type, member)
void(* work)(struct uv__work *w)
static void worker(void *arg)
static QUEUE exit_message
static unsigned int idle_threads
static unsigned int slow_io_work_running
static QUEUE run_slow_work_message
void uv__work_done(uv_async_t *handle)
void uv__threadpool_cleanup(void)
static unsigned int nthreads
static uv_thread_t * threads
int uv_cancel(uv_req_t *req)
static void post(QUEUE *q, enum uv__work_kind kind)
int uv_queue_work(uv_loop_t *loop, uv_work_t *req, uv_work_cb work_cb, uv_after_work_cb after_work_cb)
static void uv__queue_done(struct uv__work *w, int err)
static unsigned int slow_work_thread_threshold(void)
static int uv__work_cancel(uv_loop_t *loop, uv_req_t *req, struct uv__work *w)
static void init_threads(void)
static void reset_once(void)
#define MAX_THREADPOOL_SIZE
static void uv__queue_work(struct uv__work *w)
static uv_thread_t default_threads[4]
static void uv__cancelled(struct uv__work *w)
void uv__work_submit(uv_loop_t *loop, struct uv__work *w, enum uv__work_kind kind, void(*work)(struct uv__work *w), void(*done)(struct uv__work *w, int status))
static void init_once(void)
static QUEUE slow_io_pending_wq
UV_PLATFORM_SEM_T uv_sem_t
pthread_mutex_t uv_mutex_t
void * uv__malloc(size_t size)
#define uv__req_init(loop, req, typ)
#define uv__req_unregister(loop, req)
UV_EXTERN void uv_mutex_lock(uv_mutex_t *handle)
UV_EXTERN int uv_thread_join(uv_thread_t *tid)
UV_EXTERN void uv_once(uv_once_t *guard, void(*callback)(void))
UV_EXTERN void uv_sem_destroy(uv_sem_t *sem)
void(* uv_after_work_cb)(uv_work_t *req, int status)
UV_EXTERN void uv_sem_post(uv_sem_t *sem)
UV_EXTERN void uv_mutex_destroy(uv_mutex_t *handle)
UV_EXTERN void uv_mutex_unlock(uv_mutex_t *handle)
UV_EXTERN int uv_thread_create(uv_thread_t *tid, uv_thread_cb entry, void *arg)
UV_EXTERN void uv_cond_wait(uv_cond_t *cond, uv_mutex_t *mutex)
UV_EXTERN void uv_cond_signal(uv_cond_t *cond)
UV_EXTERN int uv_async_send(uv_async_t *async)
UV_EXTERN void uv_sem_wait(uv_sem_t *sem)
UV_EXTERN int uv_sem_init(uv_sem_t *sem, unsigned int value)
UV_EXTERN int uv_mutex_init(uv_mutex_t *handle)
UV_EXTERN void uv_cond_destroy(uv_cond_t *cond)
UV_EXTERN int uv_cond_init(uv_cond_t *cond)
void(* uv_work_cb)(uv_work_t *req)