Macros | Functions | Variables
benchmark-async-pummel.c File Reference
#include "task.h"
#include "uv.h"
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for benchmark-async-pummel.c:

Go to the source code of this file.

Macros

#define ACCESS_ONCE(type, var)   (*(volatile type*) &(var))
 
#define NUM_PINGS   (1000 * 1000)
 

Functions

static void async_cb (uv_async_t *handle)
 
 BENCHMARK_IMPL (async_pummel_1)
 
 BENCHMARK_IMPL (async_pummel_2)
 
 BENCHMARK_IMPL (async_pummel_4)
 
 BENCHMARK_IMPL (async_pummel_8)
 
static void pummel (void *arg)
 
static int test_async_pummel (int nthreads)
 

Variables

static unsigned int callbacks
 
static volatile int done
 
static const char running [] = "running"
 
static const char stop [] = "stop"
 
static const char stopped [] = "stopped"
 

Macro Definition Documentation

◆ ACCESS_ONCE

#define ACCESS_ONCE (   type,
  var 
)    (*(volatile type*) &(var))

Definition at line 29 of file benchmark-async-pummel.c.

◆ NUM_PINGS

#define NUM_PINGS   (1000 * 1000)

Definition at line 28 of file benchmark-async-pummel.c.

Function Documentation

◆ async_cb()

static void async_cb ( uv_async_t handle)
static

Definition at line 39 of file benchmark-async-pummel.c.

◆ BENCHMARK_IMPL() [1/4]

BENCHMARK_IMPL ( async_pummel_1  )

Definition at line 102 of file benchmark-async-pummel.c.

◆ BENCHMARK_IMPL() [2/4]

BENCHMARK_IMPL ( async_pummel_2  )

Definition at line 107 of file benchmark-async-pummel.c.

◆ BENCHMARK_IMPL() [3/4]

BENCHMARK_IMPL ( async_pummel_4  )

Definition at line 112 of file benchmark-async-pummel.c.

◆ BENCHMARK_IMPL() [4/4]

BENCHMARK_IMPL ( async_pummel_8  )

Definition at line 117 of file benchmark-async-pummel.c.

◆ pummel()

static void pummel ( void *  arg)
static

Definition at line 53 of file benchmark-async-pummel.c.

◆ test_async_pummel()

static int test_async_pummel ( int  nthreads)
static

Definition at line 64 of file benchmark-async-pummel.c.

Variable Documentation

◆ callbacks

unsigned int callbacks
static

Definition at line 31 of file benchmark-async-pummel.c.

◆ done

volatile int done
static

Definition at line 32 of file benchmark-async-pummel.c.

◆ running

const char running[] = "running"
static

Definition at line 34 of file benchmark-async-pummel.c.

◆ stop

const char stop[] = "stop"
static

Definition at line 35 of file benchmark-async-pummel.c.

◆ stopped

const char stopped[] = "stopped"
static

Definition at line 36 of file benchmark-async-pummel.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:04