Go to the documentation of this file.
37 static unsigned g = 0;
38 g =
g * 214013 + 2531011;
103 printf(
"%s async events in %.1f seconds (%s/s, %s unique handles seen)\n",
#define ARRAY_SIZE(array)
static unsigned fastrand(void)
BENCHMARK_IMPL(million_async)
_Use_decl_annotations_ int __cdecl printf(const char *_Format,...)
UV_EXTERN int uv_thread_join(uv_thread_t *tid)
UV_EXTERN int uv_run(uv_loop_t *, uv_run_mode mode)
static void async_cb(uv_async_t *handle)
UV_EXTERN void uv_close(uv_handle_t *handle, uv_close_cb close_cb)
UV_EXTERN uv_loop_t * uv_default_loop(void)
static void timer_cb(uv_timer_t *handle)
UV_EXTERN int uv_thread_create(uv_thread_t *tid, uv_thread_cb entry, void *arg)
#define MAKE_VALGRIND_HAPPY()
GTEST_API_ const char * fmt
UV_EXTERN int uv_async_init(uv_loop_t *, uv_async_t *async, uv_async_cb async_cb)
static uv_thread_t thread_id
static void thread_cb(void *arg)
uv_async_t async_handles[1024 *1024]
UV_EXTERN int uv_timer_start(uv_timer_t *handle, uv_timer_cb cb, uint64_t timeout, uint64_t repeat)
UV_EXTERN int uv_timer_init(uv_loop_t *, uv_timer_t *handle)
static uv_timer_t timer_handle
static struct async_container * container
UV_EXTERN int uv_async_send(uv_async_t *async)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:36