Parallelize Disk I/O and RegionFx processing

This commit is contained in:
Robin Gareus 2024-04-30 03:46:39 +02:00
parent 4b0da72bc2
commit 5b9e4fff63
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
15 changed files with 189 additions and 20 deletions

View file

@ -280,6 +280,11 @@ pbd_pthread_priority (PBDThreadClass which)
default:
case THREAD_PROC:
return -2;
case THREAD_IO:
/* https://github.com/mingw-w64/mingw-w64/blob/master/mingw-w64-libraries/winpthreads/src/sched.c
* -> THREAD_PRIORITY_HIGHEST
*/
return -13;
}
#else
int base = -20;
@ -299,6 +304,8 @@ pbd_pthread_priority (PBDThreadClass which)
default:
case THREAD_PROC:
return base - 2;
case THREAD_IO:
return base - 10;
}
#endif
}