acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
allocate_processor_cache_oriented.h
1
#pragma once
2
3
4
CLASS_DECL_ACME
void
* processor_cache_oriented_memory_alloc(
size_t
s);
5
CLASS_DECL_ACME
void
processor_cache_oriented_memory_free(
void
* p);
6
CLASS_DECL_ACME
void
processor_cache_oriented_memory_reset(
void
);
7
CLASS_DECL_ACME ::i32_bool processor_cache_oriented_set_thread_memory_pool(::i32 iPoolIndex);
8
CLASS_DECL_ACME
void
processor_cache_oriented_destroy_all_memory_pools(
void
);
9
10
#define MAX_PROC_CACHE_ORIENTED_MEM_POOL 32
11
12
13
#if defined(__cplusplus)
14
15
class
CLASS_DECL_ACME processor_cache_oriented_memory_allocator
16
{
17
public
:
18
19
inline
static
void
* alloc(
size_t
iSize)
20
{
21
22
return
processor_cache_oriented_memory_alloc(iSize);
23
24
}
25
26
inline
static
void
_free(
void
* p)
27
{
28
29
processor_cache_oriented_memory_free(p);
30
31
}
32
33
inline
static
void
reset()
34
{
35
36
processor_cache_oriented_memory_reset();
37
38
}
39
40
};
41
42
43
#endif
44
45
46
47
48
49
50
memory
allocate_processor_cache_oriented.h
Generated by
1.17.0