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
2019-07-29 12:59:18 -03:00
parent 4fe3ee1730
commit c613ead5fa
37 changed files with 458 additions and 192 deletions

View File

@ -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;