Go to the documentation of this file.
   64 static const unsigned first_handle_number_fs_event = 0;
 
   68 #define DEFINE_GLOBALS_AND_CBS(name, ...)                                     \ 
   69   static uv_##name##_t (name)[3];                                             \ 
   70   static unsigned name##_cb_calls[3];                                         \ 
   72   static void name##2_cb(__VA_ARGS__) {                                       \ 
   73     ASSERT(handle == &(name)[2]);                                             \ 
   74     if (first_handle_number_##name == 2) {                                    \ 
   75       uv_close((uv_handle_t*)&(name)[2], NULL);                               \ 
   76       uv_close((uv_handle_t*)&(name)[1], NULL);                               \ 
   78     name##_cb_calls[2]++;                                                     \ 
   81   static void name##1_cb(__VA_ARGS__) {                                       \ 
   82     ASSERT(handle == &(name)[1]);                                             \ 
   83     ASSERT(0 && "Shouldn't be called" && (&name[0]));                         \ 
   86   static void name##0_cb(__VA_ARGS__) {                                       \ 
   87     ASSERT(handle == &(name)[0]);                                             \ 
   88     if (first_handle_number_##name == 0) {                                    \ 
   89       uv_close((uv_handle_t*)&(name)[0], NULL);                               \ 
   90       uv_close((uv_handle_t*)&(name)[1], NULL);                               \ 
   92     name##_cb_calls[0]++;                                                     \ 
   95   static const uv_##name##_cb name##_cbs[] = {                                \ 
  101 #define INIT_AND_START(name, loop)                                            \ 
  104     for (i = 0; i < ARRAY_SIZE(name); i++) {                                  \ 
  106       r = uv_##name##_init((loop), &(name)[i]);                               \ 
  109       r = uv_##name##_start(&(name)[i], name##_cbs[i]);                       \ 
  114 #define END_ASSERTS(name)                                                     \ 
  116     ASSERT(name##_cb_calls[0] == 1);                                          \ 
  117     ASSERT(name##_cb_calls[1] == 0);                                          \ 
  118     ASSERT(name##_cb_calls[2] == 1);                                          \ 
  132 static const char watched_dir[] = 
".";
 
  134 static unsigned helper_timer_cb_calls;
 
  152 static void helper_timer_cb(
uv_timer_t* thandle) {
 
  164   helper_timer_cb_calls++;
 
  180   init_and_start_fs_events(
loop);
 
  198   ASSERT(helper_timer_cb_calls == 1);
 
  
#define END_ASSERTS(name)
#define ARRAY_SIZE(array)
TEST_IMPL(queue_foreach_delete)
UV_EXTERN int uv_run(uv_loop_t *, uv_run_mode mode)
static const unsigned first_handle_number_check
UV_EXTERN uv_loop_t * uv_default_loop(void)
static const unsigned first_handle_number_prepare
static uv_fs_event_t fs_event
#define DEFINE_GLOBALS_AND_CBS(name,...)
static uv_prepare_t prepare
UV_EXTERN int uv_fs_utime(uv_loop_t *loop, uv_fs_t *req, const char *path, double atime, double mtime, uv_fs_cb cb)
#define MAKE_VALGRIND_HAPPY()
#define INIT_AND_START(name, loop)
void(* uv_fs_event_cb)(uv_fs_event_t *handle, const char *filename, int events, int status)
static void check(upb_inttable *t)
UV_EXTERN int uv_fs_event_start(uv_fs_event_t *handle, uv_fs_event_cb cb, const char *path, unsigned int flags)
UV_EXTERN void uv_fs_req_cleanup(uv_fs_t *req)
UV_EXTERN int uv_timer_start(uv_timer_t *handle, uv_timer_cb cb, uint64_t timeout, uint64_t repeat)
UV_EXTERN int uv_timer_init(uv_loop_t *, uv_timer_t *handle)
UV_EXTERN int uv_fs_event_init(uv_loop_t *loop, uv_fs_event_t *handle)
static const unsigned first_handle_number_idle
grpc
Author(s): 
autogenerated on Fri May 16 2025 03:00:26