libclod
C library for interacting with NBTs, region files, LOD data and other things.
Loading...
Searching...
No Matches
keepalive.h
1#ifndef LIBCLOD_KEEPALIVE_H
2#define LIBCLOD_KEEPALIVE_H
3
4#include <clod/thread.h>
5
7void clod_rwseq_rd_keepalive_start(int *ptr);
8
10void clod_rwseq_rd_keepalive_end(int *ptr);
11
13void clod_rwseq_wr_keepalive_start(int *ptr);
14
16void clod_rwseq_wr_keepalive_end(int *ptr);
17
19int keepalive_main(int argc, char **argv);
20
21extern struct {
22 int count;
23 int **read_locks;
24 int **write_locks;
25} keepalive_locks;
26
27#endif