Go to the documentation of this file.
49 #define THREAD_DELAY_MS 6000
50 #define THREAD_DELAY_EPSILON 1500
51 #define CONCURRENT_TEST_THREADS 100
78 reinterpret_cast<void*
>(sleep_time_ms));
83 for (
auto&
thd : thds) {
91 bool* exec_ctx_created =
static_cast<bool*
>(
arg);
93 *exec_ctx_created =
true;
117 bool exec_ctx_created =
false;
132 int main(
int argc,
char* argv[]) {
static void test_exec_count()
GPRAPI int gpr_time_similar(gpr_timespec a, gpr_timespec b, gpr_timespec threshold)
static void DecExecCtxCount()
static void AllowExecCtx()
static void Enable(bool enable)
static void AwaitThreads()
GPRAPI void gpr_sleep_until(gpr_timespec until)
static void test_thd_count()
int main(int argc, char *argv[])
#define CONCURRENT_TEST_THREADS
GPRAPI gpr_timespec gpr_now(gpr_clock_type clock)
#define THREAD_DELAY_EPSILON
GPRAPI gpr_timespec gpr_time_add(gpr_timespec a, gpr_timespec b)
static void sleeping_thd(void *arg)
static void GlobalShutdown()
static void IncExecCtxCount()
GPRAPI gpr_timespec gpr_time_from_millis(int64_t ms, gpr_clock_type clock_type)
static void exec_ctx_thread(void *arg)
static bool BlockExecCtx()
GPRAPI gpr_timespec gpr_time_from_seconds(int64_t s, gpr_clock_type clock_type)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:22