Go to the documentation of this file.
28 #define NUM_PINGS (1000 * 1000)
29 #define ACCESS_ONCE(type, var) (*(volatile type*) &(var))
35 static const char stop[] =
"stop";
70 tids = calloc(
nthreads,
sizeof(tids[0]));
89 printf(
"async_pummel_%d: %s callbacks in %.2f seconds (%s/sec)\n",
static unsigned int callbacks
_Use_decl_annotations_ int __cdecl printf(const char *_Format,...)
static const char stopped[]
BENCHMARK_IMPL(async_pummel_1)
UV_EXTERN int uv_thread_join(uv_thread_t *tid)
UV_EXTERN int uv_run(uv_loop_t *, uv_run_mode mode)
UV_EXTERN void uv_close(uv_handle_t *handle, uv_close_cb close_cb)
UV_EXTERN uv_loop_t * uv_default_loop(void)
unsigned __int64 uint64_t
static unsigned int nthreads
UV_EXTERN int uv_thread_create(uv_thread_t *tid, uv_thread_cb entry, void *arg)
static const char running[]
UV_EXTERN void uv_sleep(unsigned int msec)
#define MAKE_VALGRIND_HAPPY()
static void async_cb(uv_async_t *handle)
GTEST_API_ const char * fmt
UV_EXTERN int uv_async_init(uv_loop_t *, uv_async_t *async, uv_async_cb async_cb)
#define ACCESS_ONCE(type, var)
static void pummel(void *arg)
UV_EXTERN uint64_t uv_hrtime(void)
static int test_async_pummel(int nthreads)
UV_EXTERN int uv_async_send(uv_async_t *async)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:36