This commit is contained in:
The Arrayser 2022-08-30 13:37:16 +02:00 committed by GitHub
parent e26410526b
commit 97175a8161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#include "../../../System Abstraction/cdb_sustem.h"
#include <stdio.h>
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");