#include <grpc/support/port_platform.h>

Go to the source code of this file.
Functions | |
| GPRAPI unsigned | gpr_cpu_current_cpu (void) |
| GPRAPI unsigned | gpr_cpu_num_cores (void) |
| GPRAPI unsigned gpr_cpu_current_cpu | ( | void | ) |
Return the CPU on which the current thread is executing; N.B. This should be considered advisory only - it is possible that the thread is switched to a different CPU at any time. Returns a value in range [0, gpr_cpu_num_cores() - 1]