3 * @author aurelien.morelle@parrot.fr
7 #include "VP_Os/vp_os_thread.h"
8 #include "VP_Os/vp_os_assert.h"
11 vp_os_thread_create(THREAD_ROUTINE f, void *parameters, THREAD_HANDLE *handle, ...)
15 *handle = CreateThread
18 0, // stack size (common)
20 parameters,// parameters given to thread routine (common)
27 vp_os_thread_self(void)
29 return GetCurrentThread();
33 vp_os_thread_join(THREAD_HANDLE handle)
35 WaitForSingleObject(handle, INFINITE);
39 vp_os_thread_suspend(THREAD_HANDLE handle)
41 SuspendThread(handle);
45 vp_os_thread_resume(THREAD_HANDLE handle)
51 vp_os_thread_yield(void)
57 vp_os_thread_priority(THREAD_HANDLE handle, int32_t priority)
59 SetThreadPriority(handle, priority);