mirror of
https://github.com/darlinghq/darling-libobjc2.git
synced 2025-02-18 15:47:38 +00:00
Added missing file.
This commit is contained in:
parent
8058495e39
commit
ffc041fc82
14
hash_table.c
Normal file
14
hash_table.c
Normal file
@ -0,0 +1,14 @@
|
||||
#include "toydispatch/toydispatch.h"
|
||||
|
||||
|
||||
static dispatch_queue_t garbage_queue;
|
||||
|
||||
__attribute__((constructor)) void static create_queue(void)
|
||||
{
|
||||
garbage_queue = dispatch_queue_create("ObjC deferred free queue", 0);
|
||||
}
|
||||
|
||||
void objc_collect_garbage_data(void(*cleanup)(void*), void *garbage)
|
||||
{
|
||||
dispatch_async_f(garbage_queue, garbage, cleanup);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user