mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
use std::function in Thread_Create so we can revert back to using it
This commit is contained in:
@ -21,6 +21,8 @@
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#include <functional>
|
||||
|
||||
namespace Platform
|
||||
{
|
||||
|
||||
@ -68,7 +70,7 @@ inline bool LocalFileExists(const char* name)
|
||||
}
|
||||
|
||||
struct Thread;
|
||||
Thread* Thread_Create(void (*func)());
|
||||
Thread* Thread_Create(std::function<void()> func);
|
||||
void Thread_Free(Thread* thread);
|
||||
void Thread_Wait(Thread* thread);
|
||||
|
||||
|
Reference in New Issue
Block a user