Differences From Artifact [ad9f8119e0]:
- File src/threading.h — part of check-in [eb827e8f21] at 2011-03-17 20:33:57 on branch trunk — Use Sleep(0) instead of yield() on Win32. (user: js, size: 7620) [annotate] [blame] [check-ins using]
To Artifact [ed61fa08de]:
- File
src/threading.h
— part of check-in
[e1b8152dd9]
at
2011-04-21 11:19:32
on branch 0.5
— Merge a few changes from default branch to 0.5 branch.
Changesets:
* 8a0cee0e7fb2
* e9f5dda18648
* 38b1ce72bd0b
* c09dc6f82884
* e193cd04a3df (user: js, size: 7802) [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)
|
| ︙ |