CringeDB/tests/System Abstraction/5/threadsTest.c
2022-08-30 13:28:21 +02:00

16 lines
500 B
C

#include "../../../System Abstraction/cdb_sustem.h"
#include <stdio.h>
sus_threadProc 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");
}