Added missing file.

This commit is contained in:
theraven 2010-02-01 14:48:40 +00:00
parent 8058495e39
commit ffc041fc82

14
hash_table.c Normal file
View 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);
}