General rax cache handling.
More...
#include "dist/rax/rax.h"
#include <pthread.h>
#include <stdbool.h>
Go to the source code of this file.
General rax cache handling.
◆ cache_free()
| bool cache_free |
( |
struct t_cache * |
cache | ) |
|
Frees a cache struct
- Parameters
-
| cache | Pointer to cache struct to free |
- Returns
- true on success, else false
◆ cache_get_read_lock()
| bool cache_get_read_lock |
( |
struct t_cache * |
cache | ) |
|
Acquires a read lock
- Parameters
-
| cache | pointer to cache struct |
- Returns
- true on success, else false
◆ cache_get_write_lock()
| bool cache_get_write_lock |
( |
struct t_cache * |
cache | ) |
|
Acquires a write lock
- Parameters
-
| cache | pointer to cache struct |
- Returns
- true on success, else false
◆ cache_init()
| bool cache_init |
( |
struct t_cache * |
cache | ) |
|
Initializes a cache struct
- Parameters
-
| cache | Pointer to cache struct to free |
- Returns
- true on success, else false
◆ cache_release_lock()
| bool cache_release_lock |
( |
struct t_cache * |
cache | ) |
|
Frees the lock
- Parameters
-
| cache | pointer to cache struct |
- Returns
- true on success, else false