extern "C" bool nnosThreadIsAlive(nnosThread* p) { nn::os::Thread* pThread = reinterpret_cast<nn::os::Thread*>(p); return pThread->IsAlive(); }