repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into release
[deb_libcec.git]
/
src
/
lib
/
platform
/
threads
/
threads.h
diff --git
a/src/lib/platform/threads/threads.h
b/src/lib/platform/threads/threads.h
index 6cc240644dc5659fd2bfea838cabb975fac98a3a..36477708d4750e6c2e035ca739d067f06cdff26a 100644
(file)
--- a/
src/lib/platform/threads/threads.h
+++ b/
src/lib/platform/threads/threads.h
@@
-41,16
+41,15
@@
namespace PLATFORM
CThread(void) :
m_bStop(false),
m_bRunning(false),
CThread(void) :
m_bStop(false),
m_bRunning(false),
- m_bStopped(false) {}
+ m_bStopped(false),
+ m_thread(INVALID_THREAD_VALUE) {}
virtual ~CThread(void)
{
StopThread(0);
void *retVal = NULL;
virtual ~CThread(void)
{
StopThread(0);
void *retVal = NULL;
- ThreadsWait(m_thread, &retVal);
- #if defined(__WINDOWS__)
- (void *)retVal; //"unreferenced local variable" warning
- #endif
+ if (m_thread != INVALID_THREAD_VALUE)
+ ThreadsWait(m_thread, &retVal);
}
static void *ThreadHandler(CThread *thread)
}
static void *ThreadHandler(CThread *thread)