CringeDB/tests/System Abstraction/5/threadsTest.c
The Arrayser a77346cc5a
void
2022-08-30 13:42:25 +02:00

16 lines
518 B
C

#include "../../../System Abstraction/cdb_sustem.h"
#include <stdio.h>
__attribute__ ((sysv_abi)) void testProc(void * arg){
printf("in testProc ... Going to sleep, %i\n", *(int *)arg);
sus_threadSleep(5);
printf("after sleeping in testProc\n");
}
int main(){
int amogus = 1234567;
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");
}