os: Tidy threading

This commit is contained in:
Jakob Bornecrantz 2019-09-15 15:39:30 +01:00
parent ee5fe9a4e5
commit 81213f119c

View file

@ -9,6 +9,7 @@
*/ */
#include "xrt/xrt_compiler.h" #include "xrt/xrt_compiler.h"
#include "util/u_misc.h"
#ifdef XRT_OS_LINUX #ifdef XRT_OS_LINUX
#include <pthread.h> #include <pthread.h>
@ -116,7 +117,7 @@ os_thread_start(struct os_thread *ost, os_run_func func, void *ptr)
} }
/*! /*!
* Joon. * Join.
*/ */
XRT_MAYBE_UNUSED static void XRT_MAYBE_UNUSED static void
os_thread_join(struct os_thread *ost) os_thread_join(struct os_thread *ost)
@ -124,7 +125,7 @@ os_thread_join(struct os_thread *ost)
void *retval; void *retval;
pthread_join(ost->thread, &retval); pthread_join(ost->thread, &retval);
memset(&ost->thread, 0, sizeof(ost->thread)); U_ZERO(&ost->thread);
} }
/*! /*!