diff options
| author | 2015-11-08 12:56:12 +0100 | |
|---|---|---|
| committer | 2015-11-08 12:56:12 +0100 | |
| commit | 7c19aac60e12d6f5ea301bdb34d7826a01e0b06f (patch) | |
| tree | f310d86aa2c6bfc19d115307dedde4eb0cd52dad /src/osd/modules/sync/sync_mini.cpp | |
| parent | a57b46ae933badd7441ce1644711dbb851e2b504 (diff) | |
Rename *.c -> *.cpp in our source (nw)
Diffstat (limited to 'src/osd/modules/sync/sync_mini.cpp')
| -rw-r--r-- | src/osd/modules/sync/sync_mini.cpp | 162 |
1 files changed, 162 insertions, 0 deletions
diff --git a/src/osd/modules/sync/sync_mini.cpp b/src/osd/modules/sync/sync_mini.cpp new file mode 100644 index 00000000000..a09303aed80 --- /dev/null +++ b/src/osd/modules/sync/sync_mini.cpp @@ -0,0 +1,162 @@ +// license:BSD-3-Clause +// copyright-holders:Aaron Giles +//============================================================ +// +// sdlsync_mini.c - Minimal core synchronization functions +// +//============================================================ + +#include "osdcore.h" +#include "osdsync.h" + +struct _osd_event +{ + void * ptr; +}; + +struct _osd_thread { + void * ptr; +}; + + +//============================================================ +// osd_lock_alloc +//============================================================ + +osd_lock *osd_lock_alloc(void) +{ + // the minimal implementation does not support threading + // just return a dummy value here + return (osd_lock *)1; +} + + +//============================================================ +// osd_lock_acquire +//============================================================ + +void osd_lock_acquire(osd_lock *lock) +{ + // the minimal implementation does not support threading + // the acquire always "succeeds" +} + + +//============================================================ +// osd_lock_try +//============================================================ + +int osd_lock_try(osd_lock *lock) +{ + // the minimal implementation does not support threading + // the acquire always "succeeds" + return TRUE; +} + + +//============================================================ +// osd_lock_release +//============================================================ + +void osd_lock_release(osd_lock *lock) +{ + // the minimal implementation does not support threading + // do nothing here +} + + +//============================================================ +// osd_lock_free +//============================================================ + +void osd_lock_free(osd_lock *lock) +{ + // the minimal implementation does not support threading + // do nothing here +} + + +//============================================================ +// osd_event_alloc +//============================================================ + +osd_event *osd_event_alloc(int manualreset, int initialstate) +{ + return NULL; +} + + +//============================================================ +// osd_event_free +//============================================================ + +void osd_event_free(osd_event *event) +{ +} + + +//============================================================ +// osd_event_set +//============================================================ + +void osd_event_set(osd_event *event) +{ +} + + +//============================================================ +// osd_event_reset +//============================================================ + +void osd_event_reset(osd_event *event) +{ +} + + +//============================================================ +// osd_event_wait +//============================================================ + +int osd_event_wait(osd_event *event, osd_ticks_t timeout) +{ + return TRUE; +} + + +//============================================================ +// osd_thread_create +//============================================================ + +osd_thread *osd_thread_create(osd_thread_callback callback, void *cbparam) +{ + return NULL; +} + + +//============================================================ +// osd_thread_adjust_priority +//============================================================ + +int osd_thread_adjust_priority(osd_thread *thread, int adjust) +{ + return FALSE; +} + + +//============================================================ +// osd_thread_cpu_affinity +//============================================================ + +int osd_thread_cpu_affinity(osd_thread *thread, UINT32 mask) +{ + return TRUE; +} + + +//============================================================ +// osd_thread_wait_free +//============================================================ + +void osd_thread_wait_free(osd_thread *thread) +{ +} |
