diff --git a/tests/System Abstraction/5/threadTests.exe b/tests/System Abstraction/5/threadTests.exe index 2e802ab..e217659 100644 Binary files a/tests/System Abstraction/5/threadTests.exe and b/tests/System Abstraction/5/threadTests.exe differ diff --git a/tests/System Abstraction/5/threadsTest.c b/tests/System Abstraction/5/threadsTest.c index b8bd3a6..19864f4 100644 --- a/tests/System Abstraction/5/threadsTest.c +++ b/tests/System Abstraction/5/threadsTest.c @@ -1,7 +1,7 @@ #include "../../../System Abstraction/cdb_sustem.h" #include -sus_threadProc testProc(void * arg){ +__attribute__ ((sysv_abi)) int testProc(void * arg){ printf("in testProc ... Going to sleep, %i\n", *(int *)arg); sus_threadSleep(5); printf("after sleeping in testProc\n"); @@ -9,7 +9,7 @@ sus_threadProc testProc(void * arg){ int main(){ int amogus = 1234567; - printf("Thread creation succesfull? %i\n", sus_threadNew(testProc, &amogus)); + printf("Thread creation succesfull? %i\n", sus_threadNew(&testProc, &amogus)); printf("Going to sleep in main Thread\n"); sus_threadSleep(10); printf("After sleeping in main Thread\n");