diff options
author | Peter H. Froehlich <peter.hans.froehlich@gmail.com> | 2019-05-08 01:08:00 +0200 |
---|---|---|
committer | Peter H. Froehlich <peter.hans.froehlich@gmail.com> | 2019-05-08 01:08:00 +0200 |
commit | a2f0dba1245270b346e65391ee5e5e94807f2510 (patch) | |
tree | 32dac7ddedcd8b91f66d1105e62984cff29a1acb /cached.h | |
download | simple-allocators-a2f0dba1245270b346e65391ee5e5e94807f2510.tar.gz |
Initial commit.
Diffstat (limited to 'cached.h')
-rw-r--r-- | cached.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cached.h b/cached.h new file mode 100644 index 0000000..32ca61c --- /dev/null +++ b/cached.h @@ -0,0 +1,18 @@ +#pragma once + +#ifndef CACHED_H_ +#define CACHED_H_ + +int +ca_setup(size_t object_size, size_t cache_size); + +void * +ca_alloc(void); + +void +ca_free(void *object); + +void +ca_cleanup(void); + +#endif |