Classes | Macros | Functions | Variables
test-ipc-heavy-traffic-deadlock-bug.c File Reference
#include "task.h"
#include "uv.h"
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
Include dependency graph for test-ipc-heavy-traffic-deadlock-bug.c:

Go to the source code of this file.

Classes

struct  write_info
 

Macros

#define BUFFER_CONTENT   42
 
#define BUFFER_SIZE   0x2000 /* 8 kb. */
 
#define BUFFERS_PER_WRITE   3
 
#define NUM_WRITES   256
 
#define XFER_SIZE   (NUM_WRITES * BUFFERS_PER_WRITE * BUFFER_SIZE)
 

Functions

static void alloc_cb (uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf)
 
static void do_write (uv_stream_t *handle)
 
static void do_writes_and_reads (uv_stream_t *handle)
 
int ipc_helper_heavy_traffic_deadlock_bug (void)
 
static void read_cb (uv_stream_t *handle, ssize_t nread, const uv_buf_t *buf)
 
static void shutdown_cb (uv_shutdown_t *req, int status)
 
void spawn_helper (uv_pipe_t *channel, uv_process_t *process, const char *helper)
 
 TEST_IMPL (ipc_heavy_traffic_deadlock_bug)
 
static void write_cb (uv_write_t *req, int status)
 

Variables

static size_t bytes_read
 
static size_t bytes_written
 
static uv_shutdown_t shutdown_req
 

Macro Definition Documentation

◆ BUFFER_CONTENT

#define BUFFER_CONTENT   42

Definition at line 35 of file test-ipc-heavy-traffic-deadlock-bug.c.

◆ BUFFER_SIZE

#define BUFFER_SIZE   0x2000 /* 8 kb. */

Definition at line 34 of file test-ipc-heavy-traffic-deadlock-bug.c.

◆ BUFFERS_PER_WRITE

#define BUFFERS_PER_WRITE   3

Definition at line 33 of file test-ipc-heavy-traffic-deadlock-bug.c.

◆ NUM_WRITES

#define NUM_WRITES   256

Definition at line 32 of file test-ipc-heavy-traffic-deadlock-bug.c.

◆ XFER_SIZE

#define XFER_SIZE   (NUM_WRITES * BUFFERS_PER_WRITE * BUFFER_SIZE)

Definition at line 37 of file test-ipc-heavy-traffic-deadlock-bug.c.

Function Documentation

◆ alloc_cb()

static void alloc_cb ( uv_handle_t handle,
size_t  suggested_size,
uv_buf_t buf 
)
static

Definition at line 81 of file test-ipc-heavy-traffic-deadlock-bug.c.

◆ do_write()

static void do_write ( uv_stream_t handle)
static

Definition at line 62 of file test-ipc-heavy-traffic-deadlock-bug.c.

◆ do_writes_and_reads()

static void do_writes_and_reads ( uv_stream_t handle)
static

Definition at line 112 of file test-ipc-heavy-traffic-deadlock-bug.c.

◆ ipc_helper_heavy_traffic_deadlock_bug()

int ipc_helper_heavy_traffic_deadlock_bug ( void  )

Definition at line 144 of file test-ipc-heavy-traffic-deadlock-bug.c.

◆ read_cb()

static void read_cb ( uv_stream_t handle,
ssize_t  nread,
const uv_buf_t buf 
)
static

Definition at line 93 of file test-ipc-heavy-traffic-deadlock-bug.c.

◆ shutdown_cb()

static void shutdown_cb ( uv_shutdown_t req,
int  status 
)
static

Definition at line 57 of file test-ipc-heavy-traffic-deadlock-bug.c.

◆ spawn_helper()

void spawn_helper ( uv_pipe_t channel,
uv_process_t process,
const char *  helper 
)

Definition at line 291 of file test-ipc.c.

◆ TEST_IMPL()

TEST_IMPL ( ipc_heavy_traffic_deadlock_bug  )

Definition at line 133 of file test-ipc-heavy-traffic-deadlock-bug.c.

◆ write_cb()

static void write_cb ( uv_write_t req,
int  status 
)
static

Definition at line 49 of file test-ipc-heavy-traffic-deadlock-bug.c.

Variable Documentation

◆ bytes_read

size_t bytes_read
static

Definition at line 47 of file test-ipc-heavy-traffic-deadlock-bug.c.

◆ bytes_written

size_t bytes_written
static

Definition at line 46 of file test-ipc-heavy-traffic-deadlock-bug.c.

◆ shutdown_req

uv_shutdown_t shutdown_req
static

Definition at line 44 of file test-ipc-heavy-traffic-deadlock-bug.c.



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