Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ngx_event_busy_lock.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright (C) Igor Sysoev
4  * Copyright (C) Nginx, Inc.
5  */
6 
7 
8 #ifndef _NGX_EVENT_BUSY_LOCK_H_INCLUDED_
9 #define _NGX_EVENT_BUSY_LOCK_H_INCLUDED_
10 
11 
12 #include <ngx_config.h>
13 #include <ngx_core.h>
14 #include <ngx_event.h>
15 
17 
21  void *data;
23 
24  unsigned locked:1;
25  unsigned waiting:1;
26  unsigned cache_updated:1;
27 
28  char *md5;
30 
32 };
33 
34 
35 typedef struct {
36  u_char *md5_mask;
37  char *md5;
39 
42 
45 
48 
49 #if (NGX_THREADS)
50  ngx_mutex_t *mutex;
51 #endif
53 
54 
63 
64 
65 #endif /* _NGX_EVENT_BUSY_LOCK_H_INCLUDED_ */