From ffc041fc82524561a0fb01b78ccc81102b7b5bc2 Mon Sep 17 00:00:00 2001 From: theraven Date: Mon, 1 Feb 2010 14:48:40 +0000 Subject: [PATCH] Added missing file. --- hash_table.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 hash_table.c diff --git a/hash_table.c b/hash_table.c new file mode 100644 index 0000000..29e4924 --- /dev/null +++ b/hash_table.c @@ -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); +}