added tbm_surface_queue_notify_dequeuable 58/168258/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 11 Jan 2018 11:13:40 +0000 (20:13 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 2 Feb 2018 05:47:19 +0000 (05:47 +0000)
Change-Id: Ib4c14154b6b44b0cfd5f9408f400df23f1093d0e

src/tbm_surface_queue.c
src/tbm_surface_queue.h

index d0af539c0a19d2a7200fbe617d3e5d94039df191..ab2fd2bed0d747c218c51bc8e0094d2c3e6656c7 100644 (file)
@@ -1689,6 +1689,21 @@ tbm_surface_queue_notify_reset(tbm_surface_queue_h surface_queue)
        return TBM_SURFACE_QUEUE_ERROR_NONE;
 }
 
+tbm_surface_queue_error_e
+tbm_surface_queue_notify_dequeuable(tbm_surface_queue_h surface_queue)
+{
+       _tbm_surf_queue_mutex_lock();
+
+       TBM_SURF_QUEUE_RETURN_VAL_IF_FAIL(_tbm_surface_queue_is_valid(surface_queue),
+                              TBM_SURFACE_QUEUE_ERROR_INVALID_QUEUE);
+
+       _tbm_surf_queue_mutex_unlock();
+
+       _notify_emit(surface_queue, &surface_queue->dequeuable_noti);
+
+       return TBM_SURFACE_QUEUE_ERROR_NONE;
+}
+
 tbm_surface_queue_error_e
 tbm_surface_queue_set_size(tbm_surface_queue_h
                        surface_queue, int queue_size, int flush)
index 57ab19250b6c31b509ce493fbbbbdd3c8647f44e..dcba8a2c3893a47a4094cd9dd2a3c6f123a1d72c 100644 (file)
@@ -124,6 +124,7 @@ tbm_surface_queue_error_e tbm_surface_queue_flush(tbm_surface_queue_h surface_qu
 tbm_surface_queue_error_e tbm_surface_queue_free_flush(tbm_surface_queue_h surface_queue);
 
 tbm_surface_queue_error_e tbm_surface_queue_notify_reset(tbm_surface_queue_h surface_queue);
+tbm_surface_queue_error_e tbm_surface_queue_notify_dequeuable(tbm_surface_queue_h surface_queue);
 
 tbm_surface_queue_error_e tbm_surface_queue_add_reset_cb(
        tbm_surface_queue_h surface_queue, tbm_surface_queue_notify_cb reset_cb,