Differences From Artifact [890723e850]:
- File src/platform/windows/thread.m — part of check-in [109db78ecd] at 2020-02-29 14:49:23 on branch trunk — Move platform specific files into a subdirectory (user: js, size: 2277) [annotate] [blame] [check-ins using] [more...]
To Artifact [6d8493f63f]:
- File
src/platform/windows/thread.m
— part of check-in
[e16590dcb7]
at
2020-06-14 15:30:53
on branch trunk
— Make threads work on Windows 98
Windows 98 does not like the pointer to a DWORD to store the thread ID
being NULL. (user: js, size: 2299) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
33 34 35 36 37 38 39 40 | return true; } bool of_thread_new(of_thread_t *thread, const char *name, void (*function)(id), id object, const of_thread_attr_t *attr) { *thread = CreateThread(NULL, (attr != NULL ? attr->stackSize : 0), | > | | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | return true; } bool of_thread_new(of_thread_t *thread, const char *name, void (*function)(id), id object, const of_thread_attr_t *attr) { DWORD threadID; *thread = CreateThread(NULL, (attr != NULL ? attr->stackSize : 0), (LPTHREAD_START_ROUTINE)function, (void *)object, 0, &threadID); if (thread == NULL) { switch (GetLastError()) { case ERROR_NOT_ENOUGH_MEMORY: errno = ENOMEM; return false; case ERROR_ACCESS_DENIED: |
︙ | ︙ |