Previous 199869 Revisions Next

r34242 Wednesday 7th January, 2015 at 19:56:57 UTC by Couriersud
Fix compile of sync_sdl.c. (nw)
[src/osd/modules/sync]sync_sdl.c

trunk/src/osd/modules/sync/sync_sdl.c
r242753r242754
1313
1414// standard C headers
1515#include <unistd.h>
16#include <sys/types.h>
17#include <signal.h>
1618
1719// MAME headers
1820#include "osdcore.h"
r242753r242754
315317   thread = (osd_thread *)calloc(1, sizeof(osd_thread));
316318   thread->callback = callback;
317319   thread->param = cbparam;
318   thread->thread = SDL_CreateThread(worker_thread_entry, thread);
320#ifdef SDLMAME_SDL2
321    thread->thread = SDL_CreateThread(worker_thread_entry, "Thread", thread);
322#else
323    thread->thread = SDL_CreateThread(worker_thread_entry, thread);
324#endif
319325   if ( thread->thread == NULL )
320326   {
321327      free(thread);
r242753r242754
352358   SDL_WaitThread(thread->thread, &status);
353359   free(thread);
354360}
361
362//============================================================
363//  osd_process_kill
364//============================================================
365
366void osd_process_kill(void)
367{
368    kill(getpid(), SIGKILL);
369}


Previous 199869 Revisions Next


© 1997-2024 The MAME Team