mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
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
This commit is contained in:
parent
59fa117d13
commit
964be640cb
4 changed files with 137 additions and 55 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue