libclod
C library for interacting with NBTs, region files, LOD data and other things.
Loading...
Searching...
No Matches
rwseq.h
Go to the documentation of this file.
1
6#ifndef LIBCLOD_LOCK_H
7#define LIBCLOD_LOCK_H
8
9#include <stdint.h>
10#include <stddef.h>
11
50
51enum clod_rwseq_result clod_rwseq_ro_lock(const uint32_t *ptr, uint32_t *seq_out);
52enum clod_rwseq_result clod_rwseq_ro_unlock(const uint32_t *ptr, uint32_t seq);
53
54enum clod_rwseq_result clod_rwseq_rd_lock(uint32_t *ptr);
55enum clod_rwseq_result clod_rwseq_rd_unlock(uint32_t *ptr);
56
57enum clod_rwseq_result clod_rwseq_wr_lock(uint32_t *ptr);
58enum clod_rwseq_result clod_rwseq_wr_unlock(uint32_t *ptr);
59
60enum clod_rwseq_result clod_rwseq_wr_lock_many(uint32_t *ptr, size_t count);
61enum clod_rwseq_result clod_rwseq_wr_unlock_many(uint32_t *ptr, size_t count);
62
64#endif
clod_rwseq_result
Definition rwseq.h:12
@ CLOD_RWSEQ_OTHER
Definition rwseq.h:24
@ CLOD_RWSEQ_DEAD
Definition rwseq.h:39
@ CLOD_RWSEQ_INTERRUPTED
Definition rwseq.h:48
@ CLOD_RWSEQ_OK
No worries at all!
Definition rwseq.h:14
@ CLOD_RWSEQ_DEAD_ACQUIRED
Definition rwseq.h:33
@ CLOD_RWSEQ_MISUSE
Definition rwseq.h:20