Implemented garbage collection
As a whole, this is still tentative.
This commit is contained in:
@@ -18,8 +18,11 @@ typedef struct Toy_Bucket { //32 | 64 BITNESS
|
||||
|
||||
TOY_API Toy_Bucket* Toy_allocateBucket(unsigned int capacity);
|
||||
TOY_API unsigned char* Toy_partitionBucket(Toy_Bucket** bucketHandle, unsigned int amount);
|
||||
TOY_API void Toy_releaseBucketPartition(unsigned char* ptr);
|
||||
TOY_API void Toy_freeBucket(Toy_Bucket** bucketHandle);
|
||||
|
||||
TOY_API void Toy_collectBucketGarbage(Toy_Bucket** bucketHandle);
|
||||
|
||||
//standard capacity sizes
|
||||
#ifndef TOY_BUCKET_1KB
|
||||
#define TOY_BUCKET_1KB (1 << 10)
|
||||
|
||||
Reference in New Issue
Block a user