stuff
This commit is contained in:
parent
a88fce53e2
commit
8e5b90f9aa
11 changed files with 51 additions and 35 deletions
|
|
@ -8,19 +8,10 @@ namespace fishbone {
|
|||
|
||||
#include <fishbone/machdep.h>
|
||||
|
||||
#ifdef _FISHBONE
|
||||
#if defined(FISHBONE_THREAD_USE_SDL2)
|
||||
typedef SDL_mutex* FISHBONE_MUTEX_HANDLE;
|
||||
typedef SDL_Thread* FISHBONE_THREAD_HANDLE;
|
||||
#endif
|
||||
#else
|
||||
typedef void* FISHBONE_MUTEX_HANDLE;
|
||||
typedef void* FISHBONE_THREAD_HANDLE;
|
||||
#endif
|
||||
|
||||
namespace fishbone {
|
||||
class Thread {
|
||||
FISHBONE_THREAD_HANDLE thread;
|
||||
struct Impl;
|
||||
Impl* impl;
|
||||
|
||||
public:
|
||||
Thread(void (*call)(fishbone::Thread* thread, void* arg), void* arg);
|
||||
|
|
@ -30,7 +21,8 @@ namespace fishbone {
|
|||
};
|
||||
|
||||
class Mutex {
|
||||
FISHBONE_MUTEX_HANDLE mutex;
|
||||
struct Impl;
|
||||
Impl* impl;
|
||||
|
||||
public:
|
||||
Mutex();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue