common/reals/real_threadpool_timer_thandle.c (22 lines of code) (raw):

// Copyright (c) Microsoft. All rights reserved. #include "real_interlocked.h" #include "real_thandle_helper.h" #include "c_pal/gballoc_hl.h" #include "c_pal/gballoc_hl_redirect.h" #include "c_pal/thandle.h" #include "c_pal/threadpool.h" #include "real_threadpool_timer_thandle.h" #include "real_interlocked_renames.h" REAL_THANDLE_DEFINE(THREADPOOL_TIMER) static void dispose_REAL_THREADPOOL_TIMER_do_nothing(REAL_THREADPOOL_TIMER* nothing) { (void)nothing; } THANDLE(THREADPOOL_TIMER) real_threadpool_timer_thandle_create(void) { THANDLE(THREADPOOL_TIMER) result = THANDLE_MALLOC(REAL_THREADPOOL_TIMER)(dispose_REAL_THREADPOOL_TIMER_do_nothing); if (result != NULL) { THANDLE_GET_T(REAL_THREADPOOL_TIMER)(result)->dummy = 1; } return result; }