Classes | Macros | Functions | Variables
test-threadpool-cancel.c File Reference
#include "uv.h"
#include "task.h"
Include dependency graph for test-threadpool-cancel.c:

Go to the source code of this file.

Classes

struct  cancel_info
 
struct  random_info
 

Macros

#define INIT_CANCEL_INFO(ci, what)
 

Functions

static void done2_cb (uv_work_t *req, int status)
 
static void done_cb (uv_work_t *req, int status)
 
static void fs_cb (uv_fs_t *req)
 
static void getaddrinfo_cb (uv_getaddrinfo_t *req, int status, struct addrinfo *res)
 
static void getnameinfo_cb (uv_getnameinfo_t *handle, int status, const char *hostname, const char *service)
 
static void nop_done_cb (uv_work_t *req, int status)
 
static void nop_random_cb (uv_random_t *req, int status, void *buf, size_t len)
 
static void saturate_threadpool (void)
 
 TEST_IMPL (threadpool_cancel_fs)
 
 TEST_IMPL (threadpool_cancel_getaddrinfo)
 
 TEST_IMPL (threadpool_cancel_getnameinfo)
 
 TEST_IMPL (threadpool_cancel_random)
 
 TEST_IMPL (threadpool_cancel_single)
 
 TEST_IMPL (threadpool_cancel_work)
 
static void timer_cb (uv_timer_t *handle)
 
static void unblock_threadpool (void)
 
static void work2_cb (uv_work_t *req)
 
static void work_cb (uv_work_t *req)
 

Variables

static unsigned done2_cb_called
 
static unsigned done_cb_called
 
static unsigned fs_cb_called
 
static uv_work_t pause_reqs [4]
 
static uv_sem_t pause_sems [ARRAY_SIZE(pause_reqs)]
 
static unsigned timer_cb_called
 

Macro Definition Documentation

◆ INIT_CANCEL_INFO

#define INIT_CANCEL_INFO (   ci,
  what 
)
Value:
do { \
(ci)->reqs = (what); \
(ci)->nreqs = ARRAY_SIZE(what); \
(ci)->stride = sizeof((what)[0]); \
} \
while (0)

Definition at line 25 of file test-threadpool-cancel.c.

Function Documentation

◆ done2_cb()

static void done2_cb ( uv_work_t req,
int  status 
)
static

Definition at line 121 of file test-threadpool-cancel.c.

◆ done_cb()

static void done_cb ( uv_work_t req,
int  status 
)
static

Definition at line 58 of file test-threadpool-cancel.c.

◆ fs_cb()

static void fs_cb ( uv_fs_t req)
static

Definition at line 90 of file test-threadpool-cancel.c.

◆ getaddrinfo_cb()

static void getaddrinfo_cb ( uv_getaddrinfo_t req,
int  status,
struct addrinfo res 
)
static

Definition at line 97 of file test-threadpool-cancel.c.

◆ getnameinfo_cb()

static void getnameinfo_cb ( uv_getnameinfo_t handle,
int  status,
const char *  hostname,
const char *  service 
)
static

Definition at line 106 of file test-threadpool-cancel.c.

◆ nop_done_cb()

static void nop_done_cb ( uv_work_t req,
int  status 
)
static

Definition at line 145 of file test-threadpool-cancel.c.

◆ nop_random_cb()

static void nop_random_cb ( uv_random_t req,
int  status,
void *  buf,
size_t  len 
)
static

Definition at line 151 of file test-threadpool-cancel.c.

◆ saturate_threadpool()

static void saturate_threadpool ( void  )
static

Definition at line 63 of file test-threadpool-cancel.c.

◆ TEST_IMPL() [1/6]

TEST_IMPL ( threadpool_cancel_fs  )

Definition at line 280 of file test-threadpool-cancel.c.

◆ TEST_IMPL() [2/6]

TEST_IMPL ( threadpool_cancel_getaddrinfo  )

Definition at line 164 of file test-threadpool-cancel.c.

◆ TEST_IMPL() [3/6]

TEST_IMPL ( threadpool_cancel_getnameinfo  )

Definition at line 197 of file test-threadpool-cancel.c.

◆ TEST_IMPL() [4/6]

TEST_IMPL ( threadpool_cancel_random  )

Definition at line 233 of file test-threadpool-cancel.c.

◆ TEST_IMPL() [5/6]

TEST_IMPL ( threadpool_cancel_single  )

Definition at line 334 of file test-threadpool-cancel.c.

◆ TEST_IMPL() [6/6]

TEST_IMPL ( threadpool_cancel_work  )

Definition at line 256 of file test-threadpool-cancel.c.

◆ timer_cb()

static void timer_cb ( uv_timer_t handle)
static

Definition at line 127 of file test-threadpool-cancel.c.

◆ unblock_threadpool()

static void unblock_threadpool ( void  )
static

Definition at line 82 of file test-threadpool-cancel.c.

◆ work2_cb()

static void work2_cb ( uv_work_t req)
static

Definition at line 116 of file test-threadpool-cancel.c.

◆ work_cb()

static void work_cb ( uv_work_t req)
static

Definition at line 53 of file test-threadpool-cancel.c.

Variable Documentation

◆ done2_cb_called

unsigned done2_cb_called
static

Definition at line 47 of file test-threadpool-cancel.c.

◆ done_cb_called

unsigned done_cb_called
static

Definition at line 46 of file test-threadpool-cancel.c.

◆ fs_cb_called

unsigned fs_cb_called
static

Definition at line 45 of file test-threadpool-cancel.c.

◆ pause_reqs

uv_work_t pause_reqs[4]
static

Definition at line 49 of file test-threadpool-cancel.c.

◆ pause_sems

uv_sem_t pause_sems[ARRAY_SIZE(pause_reqs)]
static

Definition at line 50 of file test-threadpool-cancel.c.

◆ timer_cb_called

unsigned timer_cb_called
static

Definition at line 48 of file test-threadpool-cancel.c.

reqs
static uv_udp_send_t reqs[ARRAY_SIZE(sockets)]
Definition: test-watcher-cross-stop.c:36
ARRAY_SIZE
#define ARRAY_SIZE(array)
Definition: bloaty.cc:101


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:33