summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-03-09 16:11:33 -0600
committerDerek Foreman <derekf@osg.samsung.com>2018-04-20 13:00:28 -0500
commit324c4ede00678801bf0caf26eff24139cc664271 (patch)
tree94e8c21e141536be71ff487122e5f5105a48b49d /src/lib/ecore_wl2
parent6b3f999cf48f87212a48e236def0a852b24a327e (diff)
ecore_wl2: Add ERR for buffer lock errors
Should never double lock or double unlock, this isn't refcounted, and probably doesn't need to be.
Diffstat (limited to 'src/lib/ecore_wl2')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_buffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_buffer.c b/src/lib/ecore_wl2/ecore_wl2_buffer.c
index d680e05f7b..ced18c145a 100644
--- a/src/lib/ecore_wl2/ecore_wl2_buffer.c
+++ b/src/lib/ecore_wl2/ecore_wl2_buffer.c
@@ -694,6 +694,7 @@ ecore_wl2_buffer_discard(Ecore_Wl2_Buffer *buf)
694EAPI void 694EAPI void
695ecore_wl2_buffer_lock(Ecore_Wl2_Buffer *b) 695ecore_wl2_buffer_lock(Ecore_Wl2_Buffer *b)
696{ 696{
697 if (b->locked) ERR("Buffer already locked\n");
697 if (buffer_manager->lock) buffer_manager->lock(b); 698 if (buffer_manager->lock) buffer_manager->lock(b);
698 b->locked = EINA_TRUE; 699 b->locked = EINA_TRUE;
699} 700}
@@ -701,6 +702,7 @@ ecore_wl2_buffer_lock(Ecore_Wl2_Buffer *b)
701EAPI void 702EAPI void
702ecore_wl2_buffer_unlock(Ecore_Wl2_Buffer *b) 703ecore_wl2_buffer_unlock(Ecore_Wl2_Buffer *b)
703{ 704{
705 if (!b->locked) ERR("Buffer already unlocked\n");
704 if (buffer_manager->unlock) buffer_manager->unlock(b); 706 if (buffer_manager->unlock) buffer_manager->unlock(b);
705 ecore_wl2_buffer_unmap(b); 707 ecore_wl2_buffer_unmap(b);
706 b->mapping = NULL; 708 b->mapping = NULL;