Go to the documentation of this file.
50 for (
size_t i = 0;
i < 10000000;
i++) {
53 for (
size_t i = 0;
i < 10000000;
i++) {
67 #define THREAD_ITERATIONS 10000
96 while ((
n = q.Pop()) ==
nullptr) {
106 for (
auto& th : thds) {
132 while ((
n = pa->
q->
Pop()) ==
nullptr) {
172 for (
auto& pth : pull_thds) {
176 for (
auto& th : thds) {
182 int main(
int argc,
char** argv) {
MultiProducerSingleConsumerQueue::Node node
GPRAPI void gpr_mu_unlock(gpr_mu *mu)
int main(int argc, char **argv)
MultiProducerSingleConsumerQueue * q
GPRAPI void gpr_event_set(gpr_event *ev, void *value)
GPRAPI gpr_timespec gpr_inf_future(gpr_clock_type type)
static void pull_thread(void *arg)
GPRAPI void gpr_mu_destroy(gpr_mu *mu)
MultiProducerSingleConsumerQueue * q
static void test_serial(void)
#define THREAD_ITERATIONS
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
GPRAPI void gpr_mu_init(gpr_mu *mu)
struct test_node test_node
static void test_mt(void)
static void test_mt_multipop(void)
GPRAPI void gpr_mu_lock(gpr_mu *mu)
GPRAPI void gpr_event_init(gpr_event *ev)
GPRAPI void * gpr_event_wait(gpr_event *ev, gpr_timespec abs_deadline)
static void test_thread(void *args)
#define GPR_ARRAY_SIZE(array)
static test_node * new_node(size_t i, size_t *ctr)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:30