archivemuh
This commit is contained in:
28
src/main.c
Normal file
28
src/main.c
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Copyright (c) 2025 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#include "engine/engine.h"
|
||||
|
||||
#include "thread/thread.h"
|
||||
thread_t thread;
|
||||
threadmutex_t mutex;
|
||||
|
||||
void myCoolThread(thread_t *thread) {
|
||||
printf("Hello from myCoolThread!\n");
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
threadInit(&thread, myCoolThread);
|
||||
threadStart(&thread);
|
||||
threadStop(&thread);
|
||||
return 0;
|
||||
|
||||
engineInit();
|
||||
for(;;) engineUpdate();
|
||||
engineDispose();
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user