#include <sys/types.h>
#include "my_inttypes.h"
Go to the source code of this file.
◆ sp_cache_clear()
◆ sp_cache_enforce_limit()
void sp_cache_enforce_limit |
( |
sp_cache * |
c, |
|
|
ulong |
upper_limit_for_elements |
|
) |
| |
Enforce that the current number of elements in the cache don't exceed the argument value by flushing the cache if necessary.
- Parameters
-
[in] | c | Cache to check |
[in] | upper_limit_for_elements | Soft upper limit for number of sp_head objects that can be stored in the cache. |
◆ sp_cache_flush_obsolete()
Remove an out-of-date SP from the cache.
- Parameters
-
[in] | cp | Cache to flush |
[in] | sp | SP to remove. |
- Note
- This invalidates pointers to sp_head objects this thread uses. In practice that means 'dont call this function when inside SP'.
◆ sp_cache_insert()
◆ sp_cache_invalidate()
void sp_cache_invalidate |
( |
| ) |
|
◆ sp_cache_lookup()
◆ sp_cache_version()
int64 sp_cache_version |
( |
| ) |
|
Return the current global version of the cache.