Rizin
unix-like reverse engineering framework and cli tools
main.c File Reference
#include <stdio.h>
#include <uv.h>

Go to the source code of this file.

Functions

void wait_for_a_while (uv_idle_t *handle)
 
int main ()
 

Variables

int64_t counter = 0
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 13 of file main.c.

13  {
15 
18 
19  printf("Idling...\n");
21 
23  return 0;
24 }
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
Definition: cs_driver.c:93
Definition: uv.h:834
void wait_for_a_while(uv_idle_t *handle)
Definition: main.c:6
uv_idle_t idler
Definition: main.c:7
@ UV_RUN_DEFAULT
Definition: uv.h:255
UV_EXTERN int uv_run(uv_loop_t *, uv_run_mode mode)
Definition: core.c:365
UV_EXTERN uv_loop_t * uv_default_loop(void)
Definition: uv-common.c:763
UV_EXTERN int uv_loop_close(uv_loop_t *loop)
Definition: uv-common.c:791
UV_EXTERN int uv_idle_start(uv_idle_t *idle, uv_idle_cb cb)
UV_EXTERN int uv_idle_init(uv_loop_t *, uv_idle_t *idle)

References idler, printf(), uv_default_loop(), uv_idle_init(), uv_idle_start(), uv_loop_close(), uv_run(), UV_RUN_DEFAULT, and wait_for_a_while().

◆ wait_for_a_while()

void wait_for_a_while ( uv_idle_t handle)

Definition at line 6 of file main.c.

6  {
7  counter++;
8 
9  if (counter >= 10e6)
11 }
static mcore_handle handle
Definition: asm_mcore.c:8
int64_t counter
Definition: main.c:4
UV_EXTERN int uv_idle_stop(uv_idle_t *idle)

References counter, handle, and uv_idle_stop().

Referenced by main().

Variable Documentation

◆ counter