@@ -24,11 +24,11 @@ return true; } bool -of_thread_new(of_thread_t *thread, id (*function)(id), id data, +of_thread_new(of_thread_t *thread, void (*function)(id), id object, const of_thread_attr_t *attr) { size_t stackSize = 0; int priority = 0; @@ -40,11 +40,11 @@ (THREAD_PRIORITY_HIGHEST - THREAD_PRIORITY_LOWEST); stackSize = attr->stackSize; } *thread = CreateThread(NULL, stackSize, - (LPTHREAD_START_ROUTINE)function, (__bridge void*)data, 0, NULL); + (LPTHREAD_START_ROUTINE)function, (__bridge void*)object, 0, NULL); if (thread == NULL) return false; if (priority > 0)