forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
16
Kha/Backends/Kinc-hxcpp/khacpp/test/threads/ThreadCode.cpp
Normal file
16
Kha/Backends/Kinc-hxcpp/khacpp/test/threads/ThreadCode.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#include <hx/Native.h>
|
||||
#include <hx/Thread.h>
|
||||
|
||||
THREAD_FUNC_TYPE threadFunc(void *data)
|
||||
{
|
||||
printf("In thread\n");
|
||||
hx::NativeAttach attach;
|
||||
Test_obj::callFromThread();
|
||||
THREAD_FUNC_RET
|
||||
}
|
||||
|
||||
void runThread()
|
||||
{
|
||||
HxCreateDetachedThread(threadFunc,nullptr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user