Add files via upload
This commit is contained in:
parent
6214a9dbba
commit
25421a8571
1
tests/System Abstraction/5/compile.bat
Normal file
1
tests/System Abstraction/5/compile.bat
Normal file
@ -0,0 +1 @@
|
||||
gcc.exe threadsTest.c "../../../System Abstraction/win32/cdb_thread.c" "../../../System Abstraction/win32/cdb_memroy.c" -o threadTests.exe
|
BIN
tests/System Abstraction/5/threadTests.exe
Normal file
BIN
tests/System Abstraction/5/threadTests.exe
Normal file
Binary file not shown.
16
tests/System Abstraction/5/threadsTest.c
Normal file
16
tests/System Abstraction/5/threadsTest.c
Normal 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");
|
||||
}
|
Loading…
Reference in New Issue
Block a user