common/reals/real_threadpool_thandle.h (22 lines of code) (raw):
// Copyright (c) Microsoft. All rights reserved.
#ifndef REAL_THREADPOOL_THANDLE_H
#define REAL_THREADPOOL_THANDLE_H
#ifdef __cplusplus
#include <cstdint>
#else
#include <stdint.h>
#endif
#include "real_thandle_helper.h"
#include "c_pal/threadpool.h"
#ifdef __cplusplus
extern "C" {
#endif
// NOTE: unlike real_threadpool, this does not use the reals for threadpool, it only has reals for the THANDLE functions
// Use this when you want to mock the threadpool functions but still want the reals for the THANDLE functions
typedef struct THREADPOOL_TAG
{
uint8_t dummy;
} THREADPOOL;
REAL_THANDLE_DECLARE(THREADPOOL)
THANDLE(THREADPOOL) real_threadpool_thandle_create(void);
#ifdef __cplusplus
}
#endif
#endif /* REAL_THREADPOOL_THANDLE_H */