| 187 | #endif |
| 188 | |
| 189 | WELS_THREAD_ERROR_CODE WelsThreadCreate (WELS_THREAD_HANDLE* thread, LPWELS_THREAD_ROUTINE routine, |
| 190 | void* arg, WELS_THREAD_ATTR attr) { |
| 191 | WELS_THREAD_HANDLE h = CreateThread (NULL, 0, routine, arg, 0, NULL); |
| 192 | |
| 193 | if (h == NULL) { |
| 194 | return WELS_THREAD_ERROR_GENERAL; |
| 195 | } |
| 196 | * thread = h; |
| 197 | |
| 198 | return WELS_THREAD_ERROR_OK; |
| 199 | } |
| 200 | |
| 201 | WELS_THREAD_ERROR_CODE WelsThreadSetName (const char* thread_name) { |
| 202 | // do nothing |
no outgoing calls