From cc070b05982899aa3c4064ec35c336529ffeb09f Mon Sep 17 00:00:00 2001 From: The Arrayser <68914060+TheArrayser@users.noreply.github.com> Date: Tue, 30 Aug 2022 13:42:44 +0200 Subject: [PATCH] void --- System Abstraction/cdb_sustem.h | 2 +- System Abstraction/win32/cdb_thread.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/System Abstraction/cdb_sustem.h b/System Abstraction/cdb_sustem.h index 19eea56..ca4c7eb 100644 --- a/System Abstraction/cdb_sustem.h +++ b/System Abstraction/cdb_sustem.h @@ -41,6 +41,6 @@ void sus_heapFree(void * memroy); // what should this function do, if an error o // Networking API -- coming soon, cuz idk //Threads -typedef __attribute__ ((sysv_abi)) int (*sus_threadProc)(void * arg); +typedef __attribute__ ((sysv_abi)) void (*sus_threadProc)(void * arg); sus_Bool sus_threadNew(sus_threadProc proc, void * arg); void sus_threadSleep(unsigned long seconds); \ No newline at end of file diff --git a/System Abstraction/win32/cdb_thread.c b/System Abstraction/win32/cdb_thread.c index e535704..f60acf2 100644 --- a/System Abstraction/win32/cdb_thread.c +++ b/System Abstraction/win32/cdb_thread.c @@ -10,7 +10,8 @@ DWORD WINAPI threadProc(void * tiarg){ struct threadInfo * ti = tiarg; struct threadInfo currentTI = {.args = ti->args, .proc = ti->proc}; sus_heapFree(ti); - return currentTI.proc(currentTI.args); + currentTI.proc(currentTI.args); + return 0; } sus_Bool sus_threadNew(sus_threadProc proc, void * arg){