mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-01 15:03:56 +08:00
update 2026-08-19 04:16:35
This commit is contained in:
1 parent
0b11371472
commit
e71eec854f
3794 files changed
+2271803
-3
No files matched your search
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (C) AlexWoo(Wu Jie) wj19840501@gmail.com
|
||||
*/
|
||||
|
||||
|
||||
#ifndef _NGX_EVENT_TIMER_MODULE_H_INCLUDED_
|
||||
#define _NGX_EVENT_TIMER_MODULE_H_INCLUDED_
|
||||
|
||||
|
||||
#include <ngx_config.h>
|
||||
#include <ngx_core.h>
|
||||
#include <ngx_event.h>
|
||||
#include <ngx_http.h>
|
||||
|
||||
|
||||
typedef void (* ngx_timer_handler_pt)(void *data);
|
||||
|
||||
/*
|
||||
* return value:
|
||||
* return timerid for successd, NGX_ERROR for failed
|
||||
* paras:
|
||||
* tv : timer interval to trigger handler
|
||||
* h : timer handler
|
||||
* data : data of h para
|
||||
*/
|
||||
ngx_int_t ngx_event_timer_add_timer(ngx_msec_t tv,
|
||||
ngx_timer_handler_pt h, void *data);
|
||||
|
||||
/*
|
||||
* paras:
|
||||
* timerid: value return in ngx_timer_add_timer
|
||||
*/
|
||||
void ngx_event_timer_del_timer(ngx_uint_t timerid);
|
||||
|
||||
/*
|
||||
* paras:
|
||||
* r: http request to query status of event timer
|
||||
*/
|
||||
ngx_chain_t *ngx_event_timer_state(ngx_http_request_t *r);
|
||||
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user