#include #include THREAD_FUNC_TYPE threadFunc(void *data) { printf("In thread\n"); hx::NativeAttach attach; Test_obj::callFromThread(); THREAD_FUNC_RET } void runThread() { HxCreateDetachedThread(threadFunc,nullptr); }