14 lines
364 B
C
14 lines
364 B
C
|
|
#ifndef TINY_FC_API_H
|
||
|
|
#define TINY_FC_API_H
|
||
|
|
#include <stddef.h>
|
||
|
|
|
||
|
|
// Push up to n pointers into the thread-local FastCache for class_idx.
|
||
|
|
// Returns the number of items actually pushed (<= room).
|
||
|
|
int tiny_fc_push_bulk(int class_idx, void** arr, int n);
|
||
|
|
|
||
|
|
// Returns current free room in FastCache for class_idx (cap - top).
|
||
|
|
int tiny_fc_room(int class_idx);
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|