return;
if (surface_queue->alloc_cb) {
+ pthread_mutex_unlock(&surface_queue->lock);
_tbm_surf_queue_mutex_unlock();
surface = surface_queue->alloc_cb(surface_queue, surface_queue->alloc_cb_data);
_tbm_surf_queue_mutex_lock();
+ pthread_mutex_lock(&surface_queue->lock);
if (!surface)
return;
return;
if (surface_queue->alloc_cb) {
+ pthread_mutex_unlock(&surface_queue->lock);
_tbm_surf_queue_mutex_unlock();
surface = surface_queue->alloc_cb(surface_queue, surface_queue->alloc_cb_data);
_tbm_surf_queue_mutex_lock();
+ pthread_mutex_lock(&surface_queue->lock);
if (!surface)
return;