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:
@ -71,7 +71,7 @@ struct _IP_ResolverPrivate {
|
||||
}
|
||||
|
||||
Mutex *mutex;
|
||||
Semaphore *sem;
|
||||
SemaphoreOld *sem;
|
||||
|
||||
Thread *thread;
|
||||
//Semaphore* semaphore;
|
||||
@ -319,7 +319,7 @@ IP::IP() {
|
||||
|
||||
#ifndef NO_THREADS
|
||||
|
||||
resolver->sem = Semaphore::create();
|
||||
resolver->sem = SemaphoreOld::create();
|
||||
if (resolver->sem) {
|
||||
resolver->thread_abort = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user