From 8aa930f28e69f3518831500022988ca2a4b6985d Mon Sep 17 00:00:00 2001 From: kwolekr Date: Wed, 26 Jun 2013 17:19:39 -0400 Subject: Add minetest.get_mapgen_object to API --- src/jthread/pthread/jthread.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/jthread/pthread') diff --git a/src/jthread/pthread/jthread.cpp b/src/jthread/pthread/jthread.cpp index 978cac20a..4a5c736eb 100644 --- a/src/jthread/pthread/jthread.cpp +++ b/src/jthread/pthread/jthread.cpp @@ -148,6 +148,11 @@ void *JThread::GetReturnValue() return val; } +bool JThread::IsSameThread() +{ + return pthread_equal(pthread_self(), threadid); +} + void *JThread::TheThread(void *param) { JThread *jthread; -- cgit v1.2.3