maph 1.0.0 High-Performance Memory-Mapped Key-Value Database with O(1) Lookups

Loading...
Searching...
No Matches
loop_data.h
Go to the documentation of this file.
1/*
2 * Authored by Alex Hultman, 2018-2019.
3 * Intellectual property of third-party.
4
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8
9 * http://www.apache.org/licenses/LICENSE-2.0
10
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#ifndef LOOP_DATA_H
19#define LOOP_DATA_H
20
21 struct us_internal_loop_data_t {
22 struct us_timer_t *sweep_timer;
23 struct us_internal_async *wakeup_async;
24 int last_write_failed;
25 struct us_socket_context_t *head;
26 struct us_socket_context_t *iterator;
27 char *recv_buf;
28 void *ssl_data;
29 void (*pre_cb)(struct us_loop_t *);
30 void (*post_cb)(struct us_loop_t *);
31 struct us_socket_t *closed_head;
32 struct us_socket_t *low_prio_head;
33 int low_prio_budget;
34 /* We do not care if this flips or not, it doesn't matter */
35 long long iteration_nr;
36};
37
38#endif // LOOP_DATA_H
us_socket_t
Definition internal.h:89
us_loop_t
Definition asio.h:26
us_internal_loop_data_t
Definition loop_data.h:21
us_internal_loop_data_t::ssl_data
void * ssl_data
Definition loop_data.h:28
us_internal_loop_data_t::wakeup_async
struct us_internal_async * wakeup_async
Definition loop_data.h:23
us_internal_loop_data_t::recv_buf
char * recv_buf
Definition loop_data.h:27
us_internal_loop_data_t::low_prio_head
struct us_socket_t * low_prio_head
Definition loop_data.h:32
us_internal_loop_data_t::head
struct us_socket_context_t * head
Definition loop_data.h:25
us_internal_loop_data_t::low_prio_budget
int low_prio_budget
Definition loop_data.h:33
us_internal_loop_data_t::post_cb
void(* post_cb)(struct us_loop_t *)
Definition loop_data.h:30
us_internal_loop_data_t::sweep_timer
struct us_timer_t * sweep_timer
Definition loop_data.h:22
us_internal_loop_data_t::closed_head
struct us_socket_t * closed_head
Definition loop_data.h:31
us_internal_loop_data_t::iterator
struct us_socket_context_t * iterator
Definition loop_data.h:26
us_internal_loop_data_t::last_write_failed
int last_write_failed
Definition loop_data.h:24
us_internal_loop_data_t::pre_cb
void(* pre_cb)(struct us_loop_t *)
Definition loop_data.h:29
us_internal_loop_data_t::iteration_nr
long long iteration_nr
Definition loop_data.h:35
us_socket_context_t
Definition internal.h:117