Classes | Macros | Typedefs | Functions
mpscq_test.cc File Reference
#include "src/core/lib/gprpp/mpscq.h"
#include <inttypes.h>
#include <stdlib.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/sync.h>
#include "src/core/lib/gpr/useful.h"
#include "src/core/lib/gprpp/thd.h"
#include "test/core/util/test_config.h"
Include dependency graph for mpscq_test.cc:

Go to the source code of this file.

Classes

struct  pull_args
 
struct  test_node
 
struct  thd_args
 

Macros

#define THREAD_ITERATIONS   10000
 

Typedefs

typedef struct test_node test_node
 

Functions

int main (int argc, char **argv)
 
static test_nodenew_node (size_t i, size_t *ctr)
 
static void pull_thread (void *arg)
 
static void test_mt (void)
 
static void test_mt_multipop (void)
 
static void test_serial (void)
 
static void test_thread (void *args)
 

Macro Definition Documentation

◆ THREAD_ITERATIONS

#define THREAD_ITERATIONS   10000

Definition at line 67 of file mpscq_test.cc.

Typedef Documentation

◆ test_node

typedef struct test_node test_node

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 182 of file mpscq_test.cc.

◆ new_node()

static test_node* new_node ( size_t  i,
size_t *  ctr 
)
static

Definition at line 40 of file mpscq_test.cc.

◆ pull_thread()

static void pull_thread ( void *  arg)
static

Definition at line 121 of file mpscq_test.cc.

◆ test_mt()

static void test_mt ( void  )
static

Definition at line 77 of file mpscq_test.cc.

◆ test_mt_multipop()

static void test_mt_multipop ( void  )
static

Definition at line 144 of file mpscq_test.cc.

◆ test_serial()

static void test_serial ( void  )
static

Definition at line 47 of file mpscq_test.cc.

◆ test_thread()

static void test_thread ( void *  args)
static

Definition at line 69 of file mpscq_test.cc.



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