Differences From Artifact [b5ecf36784]:
- File src/threading.h — part of check-in [e52ccc8d45] at 2011-04-11 00:37:42 on branch trunk — A few readability improvements. (user: js, size: 7494) [annotate] [blame] [check-ins using]
To Artifact [d7813d4c61]:
- File src/threading.h — part of check-in [70b77b9b3a] at 2011-04-12 12:43:47 on branch trunk — Detach threads when we never joined them. (user: js, size: 7676) [annotate] [blame] [check-ins using]
| ︙ | |||
86 87 88 89 90 91 92 93 94 95 96 97 98 99 | 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | + + + + + + + + + + + |
return NO;
CloseHandle(thread);
return YES;
#endif
}
static OF_INLINE BOOL
of_thread_detach(of_thread_t thread)
{
#if defined(OF_HAVE_PTHREADS)
return !pthread_detach(thread);
#elif defined(_WIN32)
/* FIXME */
return YES;
#endif
}
static OF_INLINE void
of_thread_exit()
{
#if defined(OF_HAVE_PTHREADS)
pthread_exit(NULL);
#elif defined(_WIN32)
|
| ︙ |