Index: src/condition_winapi.m ================================================================== --- src/condition_winapi.m +++ src/condition_winapi.m @@ -35,11 +35,13 @@ } bool of_condition_broadcast(of_condition_t *condition) { - for (int i = 0; i < condition->count; i++) + int count = condition->count; + + for (int i = 0; i < count; i++) if (!SetEvent(condition->event)) return false; return true; } Index: src/thread_winapi.m ================================================================== --- src/thread_winapi.m +++ src/thread_winapi.m @@ -72,13 +72,14 @@ } bool of_thread_detach(of_thread_t thread) { - /* FIXME */ + CloseHandle(thread); + return true; } void of_thread_set_name(const char *name) { }