You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
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:
@@ -32,14 +32,14 @@
|
||||
|
||||
#include "core/error_macros.h"
|
||||
|
||||
Semaphore *(*Semaphore::create_func)() = 0;
|
||||
SemaphoreOld *(*SemaphoreOld::create_func)() = 0;
|
||||
|
||||
Semaphore *Semaphore::create() {
|
||||
SemaphoreOld *SemaphoreOld::create() {
|
||||
|
||||
ERR_FAIL_COND_V(!create_func, 0);
|
||||
|
||||
return create_func();
|
||||
}
|
||||
|
||||
Semaphore::~Semaphore() {
|
||||
SemaphoreOld::~SemaphoreOld() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user