aboutsummaryrefslogtreecommitdiff
path: root/src/jthread/pthread/jthread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jthread/pthread/jthread.cpp')
-rw-r--r--src/jthread/pthread/jthread.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/jthread/pthread/jthread.cpp b/src/jthread/pthread/jthread.cpp
index e90c03456..414d8fde5 100644
--- a/src/jthread/pthread/jthread.cpp
+++ b/src/jthread/pthread/jthread.cpp
@@ -146,10 +146,7 @@ bool JThread::IsSameThread()
void *JThread::TheThread(void *param)
{
- JThread *jthread;
- void *ret;
-
- jthread = (JThread *)param;
+ JThread *jthread = (JThread *)param;
jthread->continuemutex2.Lock();
jthread->running = true;
@@ -157,7 +154,7 @@ void *JThread::TheThread(void *param)
jthread->continuemutex.Lock();
jthread->continuemutex.Unlock();
- ret = jthread->Thread();
+ jthread->Thread();
jthread->running = false;