Classes | Functions
spinlock_test.cc File Reference
#include "src/core/lib/gpr/spinlock.h"
#include <stdio.h>
#include <stdlib.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/sync.h>
#include <grpc/support/time.h>
#include "src/core/lib/gprpp/thd.h"
#include "test/core/util/test_config.h"
Include dependency graph for spinlock_test.cc:

Go to the source code of this file.

Classes

struct  test
 

Functions

static void inc (void *v)
 
static void inctry (void *v)
 
int main (int argc, char *argv[])
 
static void test (const char *name, void(*body)(void *m), int timeout_s, int incr_step)
 
static void test_create_threads (struct test *m, void(*body)(void *arg))
 
static void test_destroy (struct test *m)
 
static struct testtest_new (int threads, int64_t iterations, int incr_step)
 
static void test_wait (struct test *m)
 

Function Documentation

◆ inc()

static void inc ( void *  v)
static

Definition at line 125 of file spinlock_test.cc.

◆ inctry()

static void inctry ( void *  v)
static

Definition at line 137 of file spinlock_test.cc.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 151 of file spinlock_test.cc.

◆ test()

static void test ( const char *  name,
void(*)(void *m)  body,
int  timeout_s,
int  incr_step 
)
static

Definition at line 90 of file spinlock_test.cc.

◆ test_create_threads()

static void test_create_threads ( struct test m,
void(*)(void *arg body 
)
static

Definition at line 68 of file spinlock_test.cc.

◆ test_destroy()

static void test_destroy ( struct test m)
static

Definition at line 62 of file spinlock_test.cc.

◆ test_new()

static struct test* test_new ( int  threads,
int64_t  iterations,
int  incr_step 
)
static

Definition at line 48 of file spinlock_test.cc.

◆ test_wait()

static void test_wait ( struct test m)
static

Definition at line 77 of file spinlock_test.cc.



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