mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-28 17:38:27 +00:00
os: Tidy threading
This commit is contained in:
parent
ee5fe9a4e5
commit
81213f119c
|
@ -9,6 +9,7 @@
|
|||
*/
|
||||
|
||||
#include "xrt/xrt_compiler.h"
|
||||
#include "util/u_misc.h"
|
||||
|
||||
#ifdef XRT_OS_LINUX
|
||||
#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
|
||||
os_thread_join(struct os_thread *ost)
|
||||
|
@ -124,7 +125,7 @@ os_thread_join(struct os_thread *ost)
|
|||
void *retval;
|
||||
|
||||
pthread_join(ost->thread, &retval);
|
||||
memset(&ost->thread, 0, sizeof(ost->thread));
|
||||
U_ZERO(&ost->thread);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Reference in a new issue