Go to the documentation of this file.
25 #define INIT_CANCEL_INFO(ci, what) \
27 (ci)->reqs = (what); \
28 (ci)->nreqs = ARRAY_SIZE(what); \
29 (ci)->stride = sizeof((what)[0]); \
70 "UV_THREADPOOL_SIZE=%lu",
108 const char* hostname,
117 ASSERT(0 &&
"work2_cb called");
199 struct sockaddr_in
addr4;
static uv_udp_send_t reqs[ARRAY_SIZE(sockets)]
#define ARRAY_SIZE(array)
UV_EXTERN int uv_fs_open(uv_loop_t *loop, uv_fs_t *req, const char *path, int flags, int mode, uv_fs_cb cb)
static void done_cb(uv_work_t *req, int status)
UV_EXTERN int uv_fs_symlink(uv_loop_t *loop, uv_fs_t *req, const char *path, const char *new_path, int flags, uv_fs_cb cb)
static void done2_cb(uv_work_t *req, int status)
TEST_IMPL(threadpool_cancel_getaddrinfo)
UV_EXTERN int uv_fs_stat(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
UV_EXTERN int uv_fs_sendfile(uv_loop_t *loop, uv_fs_t *req, uv_file out_fd, uv_file in_fd, int64_t in_offset, size_t length, uv_fs_cb cb)
UV_EXTERN int uv_fs_readlink(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
static unsigned done2_cb_called
static uv_sem_t pause_sems[ARRAY_SIZE(pause_reqs)]
UV_EXTERN int uv_run(uv_loop_t *, uv_run_mode mode)
#define container_of(ptr, type, member)
UV_EXTERN int uv_queue_work(uv_loop_t *loop, uv_work_t *req, uv_work_cb work_cb, uv_after_work_cb after_work_cb)
UV_EXTERN int uv_fs_mkdir(uv_loop_t *loop, uv_fs_t *req, const char *path, int mode, uv_fs_cb cb)
static void work2_cb(uv_work_t *req)
UV_EXTERN int uv_fs_futime(uv_loop_t *loop, uv_fs_t *req, uv_file file, double atime, double mtime, uv_fs_cb cb)
static void work_cb(uv_work_t *req)
UV_EXTERN void uv_close(uv_handle_t *handle, uv_close_cb close_cb)
UV_EXTERN int uv_ip4_addr(const char *ip, int port, struct sockaddr_in *addr)
UV_EXTERN int uv_fs_unlink(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
UV_EXTERN int uv_getnameinfo(uv_loop_t *loop, uv_getnameinfo_t *req, uv_getnameinfo_cb getnameinfo_cb, const struct sockaddr *addr, int flags)
UV_EXTERN uv_loop_t * uv_default_loop(void)
static unsigned done_cb_called
static void getnameinfo_cb(uv_getnameinfo_t *handle, int status, const char *hostname, const char *service)
static void nop_done_cb(uv_work_t *req, int status)
static void saturate_threadpool(void)
UV_EXTERN int uv_fs_fsync(uv_loop_t *loop, uv_fs_t *req, uv_file file, uv_fs_cb cb)
UV_EXTERN int uv_fs_fchmod(uv_loop_t *loop, uv_fs_t *req, uv_file file, int mode, uv_fs_cb cb)
UV_EXTERN int uv_fs_fdatasync(uv_loop_t *loop, uv_fs_t *req, uv_file file, uv_fs_cb cb)
UV_PLATFORM_SEM_T uv_sem_t
UV_EXTERN int uv_fs_close(uv_loop_t *loop, uv_fs_t *req, uv_file file, uv_fs_cb cb)
static uv_work_t pause_reqs[4]
UV_EXTERN void uv_sem_post(uv_sem_t *sem)
UV_EXTERN int uv_fs_scandir(uv_loop_t *loop, uv_fs_t *req, const char *path, int flags, uv_fs_cb cb)
static void getaddrinfo_cb(uv_getaddrinfo_t *req, int status, struct addrinfo *res)
UV_EXTERN void uv_freeaddrinfo(struct addrinfo *ai)
UV_EXTERN int uv_fs_utime(uv_loop_t *loop, uv_fs_t *req, const char *path, double atime, double mtime, uv_fs_cb cb)
UV_EXTERN int uv_sem_init(uv_sem_t *sem, unsigned int value)
void(* uv_work_cb)(uv_work_t *req)
UV_EXTERN int uv_fs_chmod(uv_loop_t *loop, uv_fs_t *req, const char *path, int mode, uv_fs_cb cb)
static struct sockaddr_in addr4
UV_EXTERN int uv_fs_read(uv_loop_t *loop, uv_fs_t *req, uv_file file, const uv_buf_t bufs[], unsigned int nbufs, int64_t offset, uv_fs_cb cb)
#define MAKE_VALGRIND_HAPPY()
UV_EXTERN int uv_fs_ftruncate(uv_loop_t *loop, uv_fs_t *req, uv_file file, int64_t offset, uv_fs_cb cb)
UV_EXTERN int uv_fs_fchown(uv_loop_t *loop, uv_fs_t *req, uv_file file, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)
static void timer_cb(uv_timer_t *handle)
UV_EXTERN int uv_random(uv_loop_t *loop, uv_random_t *req, void *buf, size_t buflen, unsigned flags, uv_random_cb cb)
static void fs_cb(uv_fs_t *req)
UV_EXTERN void uv_sem_destroy(uv_sem_t *sem)
UV_EXTERN int uv_fs_write(uv_loop_t *loop, uv_fs_t *req, uv_file file, const uv_buf_t bufs[], unsigned int nbufs, int64_t offset, uv_fs_cb cb)
UV_EXTERN int uv_fs_link(uv_loop_t *loop, uv_fs_t *req, const char *path, const char *new_path, uv_fs_cb cb)
UV_EXTERN int uv_fs_chown(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)
static unsigned timer_cb_called
UV_EXTERN int uv_fs_rename(uv_loop_t *loop, uv_fs_t *req, const char *path, const char *new_path, uv_fs_cb cb)
UV_EXTERN uv_buf_t uv_buf_init(char *base, unsigned int len)
UV_EXTERN int uv_fs_realpath(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
UV_EXTERN int uv_getaddrinfo(uv_loop_t *loop, uv_getaddrinfo_t *req, uv_getaddrinfo_cb getaddrinfo_cb, const char *node, const char *service, const struct addrinfo *hints)
UV_EXTERN void uv_fs_req_cleanup(uv_fs_t *req)
UV_EXTERN int uv_timer_start(uv_timer_t *handle, uv_timer_cb cb, uint64_t timeout, uint64_t repeat)
UV_EXTERN void uv_sem_wait(uv_sem_t *sem)
UV_EXTERN int uv_timer_init(uv_loop_t *, uv_timer_t *handle)
__attribute__((deprecated("Please use GRPCProtoMethod."))) @interface ProtoMethod NSString * service
static uv_timer_t timer_handle
UV_EXTERN int uv_cancel(uv_req_t *req)
UV_EXTERN int uv_fs_lstat(uv_loop_t *loop, uv_fs_t *req, const char *path, uv_fs_cb cb)
#define INIT_CANCEL_INFO(ci, what)
static void nop_random_cb(uv_random_t *req, int status, void *buf, size_t len)
static unsigned fs_cb_called
UV_EXTERN int uv_fs_fstat(uv_loop_t *loop, uv_fs_t *req, uv_file file, uv_fs_cb cb)
static void unblock_threadpool(void)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:27