Attempt to fix win32 compilation after own recent commits.
This commit is contained in:
parent
15fb2bd477
commit
d2fbbed462
|
@ -347,6 +347,7 @@ static TaskPool *task_pool_create_ex(TaskScheduler *scheduler, void *userdata, c
|
|||
TaskPool *pool = MEM_callocN(sizeof(TaskPool), "TaskPool");
|
||||
|
||||
#ifndef NDEBUG
|
||||
# ifndef WIN32 /* WIN32 pthread_t seems to ba a struct, no direct comparison available, *sigh* */
|
||||
/* Assert we do not try to create a background pool from some parent task - those only work OK from main thread. */
|
||||
if (is_background) {
|
||||
const pthread_t thread_id = pthread_self();
|
||||
|
@ -356,6 +357,7 @@ static TaskPool *task_pool_create_ex(TaskScheduler *scheduler, void *userdata, c
|
|||
BLI_assert(scheduler->threads[i] != thread_id);
|
||||
}
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
|
||||
pool->scheduler = scheduler;
|
||||
|
|
Loading…
Reference in New Issue