amogus
This commit is contained in:
parent
e26410526b
commit
97175a8161
Binary file not shown.
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user