Minor cleanups. Logfile now has a header. We no longer log the entire config file, use -C (--dumpcfg) to enable that.

This commit is contained in:
waltje
2017-10-21 20:29:11 -04:00
parent cd9253c9b8
commit 8890281b58
5 changed files with 45 additions and 62 deletions

View File

@@ -8,7 +8,7 @@
*
* Implement threads and mutexes for the Win32 platform.
*
* Version: @(#)win_thread.c 1.0.4 2017/10/16
* Version: @(#)win_thread.c 1.0.5 2017/10/19
*
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
* Fred N. van Kempen, <decwiz@yahoo.com>
@@ -36,26 +36,19 @@ typedef struct {
} win_event_t;
void *
thread_create(void (*thread_rout)(void *param), void *param)
thread_t *
thread_create(void (*func)(void *param), void *param)
{
return((void *)_beginthread(thread_rout, 0, param));
return((thread_t *)_beginthread(func, 0, param));
}
void
thread_kill(void *handle)
thread_kill(void *arg)
{
if (handle == NULL) return;
if (arg == NULL) return;
TerminateThread(handle, 0);
}
void
thread_sleep(int t)
{
Sleep(t);
TerminateThread(arg, 0);
}