diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-10-11 07:51:18 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-10-11 07:51:18 +0200 |
| commit | 920bdc358831087c46db736120a718ed9a75fbd4 (patch) | |
| tree | e884606865dccd8e756c4271b24f7ecc33f19826 /interface.c | |
| parent | ac6283f92b0579c0e820e13a83715389455d3171 (diff) | |
| download | ttdaw-920bdc358831087c46db736120a718ed9a75fbd4.tar.gz | |
Added boilerplate interface code
Diffstat (limited to 'interface.c')
| -rw-r--r-- | interface.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/interface.c b/interface.c index 6399cb8..26aca55 100644 --- a/interface.c +++ b/interface.c @@ -1,2 +1,16 @@ +#include <stdio.h> +#include <unistd.h> + #include "interface.h" +#include "mutex.h" + +void *interface(void *arg) { + InterfaceArgs* args = (InterfaceArgs*)arg; + (void)args; + while(1) { + // Do the thread stuff here. + sleep(1); + fprintf(stdout, "hi from interface thread\n"); + } +} |
