make scanfill threadsafe (wasnt threadsafe before BMesh merge but before the merge it didn't need to be) - now rendering uses its better if its threadsafe.
This commit is contained in:
@@ -115,7 +115,6 @@ static pthread_mutex_t _rcache_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
static pthread_mutex_t _opengl_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
static pthread_mutex_t _nodes_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
static pthread_mutex_t _movieclip_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
static pthread_mutex_t _scanfill_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
static pthread_t mainid;
|
||||
static int thread_levels= 0; /* threads can be invoked inside threads */
|
||||
|
||||
@@ -354,8 +353,6 @@ void BLI_lock_thread(int type)
|
||||
pthread_mutex_lock(&_nodes_lock);
|
||||
else if (type==LOCK_MOVIECLIP)
|
||||
pthread_mutex_lock(&_movieclip_lock);
|
||||
else if (type == LOCK_SCANFILL)
|
||||
pthread_mutex_lock(&_scanfill_lock);
|
||||
}
|
||||
|
||||
void BLI_unlock_thread(int type)
|
||||
@@ -376,8 +373,6 @@ void BLI_unlock_thread(int type)
|
||||
pthread_mutex_unlock(&_nodes_lock);
|
||||
else if (type==LOCK_MOVIECLIP)
|
||||
pthread_mutex_unlock(&_movieclip_lock);
|
||||
else if (type == LOCK_SCANFILL)
|
||||
pthread_mutex_unlock(&_scanfill_lock);
|
||||
}
|
||||
|
||||
/* Mutex Locks */
|
||||
|
||||
Reference in New Issue
Block a user