SwitchToThread is not defined by any library. Not even by the kernel32.lib
as noted in the MSDN documentation. At least not on my WinXP Pro box. This commit was SVN r10719.
Этот коммит содержится в:
родитель
47eef2e002
Коммит
ee6fab783d
@ -42,8 +42,8 @@
|
||||
#ifdef HAVE_SCHED_YIELD
|
||||
# include <sched.h>
|
||||
# define SPIN sched_yield()
|
||||
#elif __WINDOWS__
|
||||
# define SPIN SwitchToThread()
|
||||
#elif defined(__WINDOWS__)
|
||||
# define SPIN /*SwitchToThread() - Not until I figure out which library define it */
|
||||
#else /* no switch available */
|
||||
# define SPIN
|
||||
#endif
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user