From 964be640cb1072b122e5047ddfed19907c6b9dab Mon Sep 17 00:00:00 2001 From: kwolekr Date: Sat, 17 Oct 2015 22:42:48 -0400 Subject: Fix some threading things and add additional thread unittests - Fix thread name reset on start() - Fully reset thread state on kill() - Add unittests to check for correct object states under various circumstances --- src/threads.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/threads.h') diff --git a/src/threads.h b/src/threads.h index 176b69c2e..d4306f631 100644 --- a/src/threads.h +++ b/src/threads.h @@ -58,11 +58,11 @@ with this program; if not, write to the Free Software Foundation, Inc., // ThreadStartFunc // #if USE_CPP11_THREADS || USE_POSIX_THREADS - typedef void *(ThreadStartFunc)(void *param); + typedef void *ThreadStartFunc(void *param); #elif defined(_WIN32_WCE) - typedef DWORD (ThreadStartFunc)(LPVOID param); + typedef DWORD ThreadStartFunc(LPVOID param); #elif defined(_WIN32) - typedef DWORD WINAPI (ThreadStartFunc)(LPVOID param); + typedef DWORD WINAPI ThreadStartFunc(LPVOID param); #endif -- cgit v1.2.3