Fix some threading things and add additional thread unittests
authorkwolekr <kwolekr@minetest.net>
Sun, 18 Oct 2015 02:42:48 +0000 (22:42 -0400)
committerkwolekr <kwolekr@minetest.net>
Sat, 24 Oct 2015 06:31:23 +0000 (02:31 -0400)
commit964be640cb1072b122e5047ddfed19907c6b9dab
tree4e400e2774d999b5457ed8031274199958401bf7
parent59fa117d13ba881f6f5e77c94f5a4ce6adb9647f
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/threading/thread.cpp
src/threading/thread.h
src/threads.h
src/unittest/test_threading.cpp