diff options
Diffstat (limited to 'src/osd/sdl/sdlsync_tc.c')
-rw-r--r-- | src/osd/sdl/sdlsync_tc.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/osd/sdl/sdlsync_tc.c b/src/osd/sdl/sdlsync_tc.c index 7d8cb7d5682..363eb16d86a 100644 --- a/src/osd/sdl/sdlsync_tc.c +++ b/src/osd/sdl/sdlsync_tc.c @@ -10,7 +10,7 @@ //============================================================ #ifndef _GNU_SOURCE -#define _GNU_SOURCE // for PTHREAD_MUTEX_RECURSIVE; needs to be here before other glibc headers are included +#define _GNU_SOURCE // for PTHREAD_MUTEX_RECURSIVE; needs to be here before other glibc headers are included #endif #include "sdlinc.h" @@ -39,14 +39,14 @@ struct hidden_mutex_t { }; struct osd_event { - pthread_mutex_t mutex; - pthread_cond_t cond; - volatile INT32 autoreset; - volatile INT32 signalled; + pthread_mutex_t mutex; + pthread_cond_t cond; + volatile INT32 autoreset; + volatile INT32 signalled; #ifdef PTR64 - INT8 padding[40]; // Fill a 64-byte cache line + INT8 padding[40]; // Fill a 64-byte cache line #else - INT8 padding[48]; // A bit more padding + INT8 padding[48]; // A bit more padding #endif }; @@ -55,12 +55,12 @@ struct osd_event { //============================================================ struct osd_thread { - pthread_t thread; + pthread_t thread; }; struct osd_scalable_lock { - osd_lock *lock; + osd_lock *lock; }; //============================================================ @@ -124,7 +124,7 @@ void osd_lock_acquire(osd_lock *lock) hidden_mutex_t *mutex = (hidden_mutex_t *) lock; int r; - r = pthread_mutex_lock(&mutex->id); + r = pthread_mutex_lock(&mutex->id); if (r==0) return; //mame_printf_error("Error on lock: %d: %s\n", r, strerror(r)); @@ -143,7 +143,7 @@ int osd_lock_try(osd_lock *lock) if (r==0) return 1; //if (r!=EBUSY) - // mame_printf_error("Error on trylock: %d: %s\n", r, strerror(r)); + // mame_printf_error("Error on trylock: %d: %s\n", r, strerror(r)); return 0; } @@ -300,7 +300,7 @@ int osd_event_wait(osd_event *event, osd_ticks_t timeout) osd_thread *osd_thread_create(osd_thread_callback callback, void *cbparam) { osd_thread *thread; - pthread_attr_t attr; + pthread_attr_t attr; thread = (osd_thread *)calloc(1, sizeof(osd_thread)); pthread_attr_init(&attr); @@ -319,8 +319,8 @@ osd_thread *osd_thread_create(osd_thread_callback callback, void *cbparam) int osd_thread_adjust_priority(osd_thread *thread, int adjust) { - struct sched_param sched; - int policy; + struct sched_param sched; + int policy; if ( pthread_getschedparam( thread->thread, &policy, &sched ) == 0 ) { @@ -341,9 +341,9 @@ int osd_thread_adjust_priority(osd_thread *thread, int adjust) int osd_thread_cpu_affinity(osd_thread *thread, UINT32 mask) { #if !defined(NO_AFFINITY_NP) - cpu_set_t cmask; - pthread_t lthread; - int bitnum; + cpu_set_t cmask; + pthread_t lthread; + int bitnum; CPU_ZERO(&cmask); for (bitnum=0; bitnum<32; bitnum++) |