| 37 | |
| 38 | #if CROWN_PLATFORM_WINDOWS |
| 39 | static DWORD WINAPI thread_proc(void *arg) |
| 40 | { |
| 41 | Thread *thread = (Thread *)arg; |
| 42 | thread->_priv->_sem.post(); |
| 43 | return thread->_priv->_function(thread->_priv->_user_data); |
| 44 | } |
| 45 | #else |
| 46 | static void *thread_proc(void *arg) |
| 47 | { |