mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 05:40:14 -05:00
Use atomic operations instead of mutex for memory allocation counter
This commit is contained in:
parent
8589327114
commit
9f24ca00d1
5 changed files with 40 additions and 40 deletions
|
|
@ -12,6 +12,11 @@
|
|||
*/
|
||||
size_t malloc_counter_get(void);
|
||||
|
||||
/**
|
||||
* Enable or disable single-thread mode for memory counters.
|
||||
*/
|
||||
void memory_single_thread(int single_thread);
|
||||
|
||||
/**
|
||||
* Safe malloc.
|
||||
* If no memory is available, it aborts.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue