mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-05 14:20:05 -05:00
Optimizes the cache use for all the RAID computations.
This commit is contained in:
parent
ed135e5912
commit
4f891087a2
8 changed files with 70 additions and 39 deletions
7
util.h
7
util.h
|
|
@ -457,6 +457,13 @@ void* malloc_nofail(size_t size);
|
|||
*/
|
||||
void* malloc_nofail_align(size_t size, void** freeptr);
|
||||
|
||||
/**
|
||||
* Safe aligned vector allocation.
|
||||
* Returns a vector of "count" pointers, each one pointing to a block of the specified "size".
|
||||
* If no memory is available, it aborts.
|
||||
*/
|
||||
unsigned char** malloc_nofail_vector_align(size_t count, size_t size, void** freeptr);
|
||||
|
||||
/**
|
||||
* Safe strdup.
|
||||
* If no memory is available, it aborts.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue