Add files via upload

This commit is contained in:
The Arrayser 2022-08-30 13:28:21 +02:00 committed by GitHub
parent 6214a9dbba
commit 25421a8571
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1 @@
gcc.exe threadsTest.c "../../../System Abstraction/win32/cdb_thread.c" "../../../System Abstraction/win32/cdb_memroy.c" -o threadTests.exe

Binary file not shown.

View File

@ -0,0 +1,16 @@
#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");
}