• 2024-11-12libubox库uloop的使用
    1.定时器使用#include<stdio.h>#include<libubox/uloop.h>voidmy_timer_callback(structuloop_timeout*timeout){printf("Timertrigger.\n");uloop_timeout_set(timeout,2000);//重置定时器}intmain(){uloop_init();structuloop_t