Added a spinlock template as well as a thread work pool class.

Also, optimized shader compilation to happen on threads.
This commit is contained in:
Juan Linietsky committed 2020-02-11 11:53:29 +01:00
1 parent 4fe3ee1730
commit c613ead5fa
37 files changed
+458 -192

No files matched your search

+2 -2
View File
@@ -111,11 +111,11 @@ CommandQueueMT::CommandQueueMT(bool p_sync) {
for (int i = 0; i < SYNC_SEMAPHORES; i++) {
sync_sems[i].sem = Semaphore::create();
sync_sems[i].sem = SemaphoreOld::create();
sync_sems[i].in_use = false;
}
if (p_sync)
sync = Semaphore::create();
sync = SemaphoreOld::create();
else
sync = NULL;
}