13
edits
m (reserve_cur() --> reserve_current()) |
m (reserve_cur() --> reserve_current()) |
||
Line 29: | Line 29: | ||
The allocator will maintain a memory reserve that reduces the likelihood of unsatisfiable allocation requests. The reserve can be configured and queried. Additionally, callback functions can be set, so that when the reserve is low/insufficient, those callback functions are given an opportunity to free memory. | The allocator will maintain a memory reserve that reduces the likelihood of unsatisfiable allocation requests. The reserve can be configured and queried. Additionally, callback functions can be set, so that when the reserve is low/insufficient, those callback functions are given an opportunity to free memory. | ||
reserve_current() returns the current reserve size. Under normal operating conditions, the current reserve will be ≥ the value accessed via reserve_[set_]threshold(). | |||
'''size_t reserve_current(void);'''<br> | '''size_t reserve_current(void);'''<br> |
edits