Go to the documentation of this file.
69 unsigned r = 12345678;
74 for (
i = 0;
i < max_i;
i++) {
76 for (j = 0; j < max_j; j++) {
77 r = (
r * 17) & ((
r -
i) | (
r *
i));
83 for (j = 0; j < ct->
ncores; j++) {
84 if (!ct->
used[j])
break;
131 fprintf(
stderr,
"Saw cores [");
147 int main(
int argc,
char* argv[]) {
GPRAPI void gpr_cv_signal(gpr_cv *cv)
GPRAPI unsigned gpr_cpu_num_cores(void)
GPRAPI void gpr_mu_unlock(gpr_mu *mu)
GPRAPI unsigned gpr_cpu_current_cpu(void)
return memset(p, 0, total)
static void worker_thread(void *arg)
GPRAPI void gpr_free(void *ptr)
GPRAPI void * gpr_malloc(size_t size)
GPRAPI gpr_timespec gpr_inf_future(gpr_clock_type type)
GPRAPI void gpr_mu_destroy(gpr_mu *mu)
GPRAPI void gpr_cv_destroy(gpr_cv *cv)
static void cpu_test(void)
GPRAPI void gpr_mu_init(gpr_mu *mu)
int64_t grpc_test_slowdown_factor()
GPRAPI int gpr_cv_wait(gpr_cv *cv, gpr_mu *mu, gpr_timespec abs_deadline)
GPRAPI void gpr_mu_lock(gpr_mu *mu)
static unsigned int nthreads
int main(int argc, char *argv[])
GPRAPI void gpr_cv_init(gpr_cv *cv)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:59