Macros | Functions
handle-inl.h File Reference
#include <assert.h>
#include <io.h>
#include "uv.h"
#include "internal.h"
Include dependency graph for handle-inl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DECREASE_ACTIVE_COUNT(loop, handle)
 
#define DECREASE_PENDING_REQ_COUNT(handle)
 
#define INCREASE_ACTIVE_COUNT(loop, handle)
 
#define uv__handle_close(handle)
 
#define uv__handle_closing(handle)
 

Functions

static INLINE HANDLE uv__get_osfhandle (int fd)
 
static INLINE void uv_process_endgames (uv_loop_t *loop)
 
static INLINE void uv_want_endgame (uv_loop_t *loop, uv_handle_t *handle)
 

Macro Definition Documentation

◆ DECREASE_ACTIVE_COUNT

#define DECREASE_ACTIVE_COUNT (   loop,
  handle 
)
Value:
do { \
if (--(handle)->activecnt == 0 && \
uv__handle_stop((handle)); \
} \
assert((handle)->activecnt >= 0); \
} while (0)

Definition at line 32 of file handle-inl.h.

◆ DECREASE_PENDING_REQ_COUNT

#define DECREASE_PENDING_REQ_COUNT (   handle)
Value:
do { \
assert(handle->reqs_pending > 0); \
handle->reqs_pending--; \
handle->reqs_pending == 0) { \
uv_want_endgame(loop, (uv_handle_t*)handle); \
} \
} while (0)

Definition at line 51 of file handle-inl.h.

◆ INCREASE_ACTIVE_COUNT

#define INCREASE_ACTIVE_COUNT (   loop,
  handle 
)
Value:
do { \
if ((handle)->activecnt++ == 0) { \
uv__handle_start((handle)); \
} \
assert((handle)->activecnt > 0); \
} while (0)

Definition at line 42 of file handle-inl.h.

◆ uv__handle_close

#define uv__handle_close (   handle)
Value:
do { \
QUEUE_REMOVE(&(handle)->handle_queue); \
uv__active_handle_rm((uv_handle_t*) (handle)); \
\
} while (0)

Definition at line 76 of file handle-inl.h.

◆ uv__handle_closing

#define uv__handle_closing (   handle)
Value:
do { \
assert(!((handle)->flags & UV_HANDLE_CLOSING)); \
uv__active_handle_add((uv_handle_t*) (handle)); \
\
} while (0)

Definition at line 63 of file handle-inl.h.

Function Documentation

◆ uv__get_osfhandle()

static INLINE HANDLE uv__get_osfhandle ( int  fd)
static

Definition at line 166 of file handle-inl.h.

◆ uv_process_endgames()

static INLINE void uv_process_endgames ( uv_loop_t loop)
static

Definition at line 98 of file handle-inl.h.

◆ uv_want_endgame()

static INLINE void uv_want_endgame ( uv_loop_t loop,
uv_handle_t handle 
)
static

Definition at line 88 of file handle-inl.h.

async_greeter_server_with_graceful_shutdown.loop
loop
Definition: async_greeter_server_with_graceful_shutdown.py:59
UV_HANDLE_CLOSED
@ UV_HANDLE_CLOSED
Definition: uv-common.h:67
close_cb
static void close_cb(uv_handle_t *handle)
Definition: benchmark-million-timers.c:36
UV_HANDLE_CLOSING
@ UV_HANDLE_CLOSING
Definition: uv-common.h:66
absl::flags_internal
Definition: abseil-cpp/absl/flags/commandlineflag.h:40
UV_HANDLE_REF
@ UV_HANDLE_REF
Definition: uv-common.h:69
handle
static csh handle
Definition: test_arm_regression.c:16
uv_handle_s
Definition: uv.h:441
if
if(p->owned &&p->wrapped !=NULL)
Definition: call.c:42
UV_HANDLE_ACTIVE
@ UV_HANDLE_ACTIVE
Definition: uv-common.h:68


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