summaryrefslogtreecommitdiff
path: root/src/lib/eio/eio_model_private.h
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2015-04-10 17:22:37 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2015-04-10 17:23:12 -0300
commitcdd597cb566aa5d1666c6485a3e78dce3c8f994a (patch)
treed5b248ec5fb749a7ca5ce3947d9cfc8c16395e5b /src/lib/eio/eio_model_private.h
parent22cfae5b8c2af964a250f4ae9bc891777721d6da (diff)
eio-model: Fixed concurrent access to filter_cb and monitoring empty directories
Added a spinlock, since contetion should be non-existant. And removed wrong if.
Diffstat (limited to '')
-rw-r--r--src/lib/eio/eio_model_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eio/eio_model_private.h b/src/lib/eio/eio_model_private.h
index 0aed0d6..adeb9cf 100644
--- a/src/lib/eio/eio_model_private.h
+++ b/src/lib/eio/eio_model_private.h
@@ -52,6 +52,7 @@ struct _Eio_Model_Data
52 int cb_count_child_del; /**< monitor reference counter for child del event*/ 52 int cb_count_child_del; /**< monitor reference counter for child del event*/
53 Eio_Filter_Direct_Cb filter_cb; 53 Eio_Filter_Direct_Cb filter_cb;
54 void *filter_userdata; 54 void *filter_userdata;
55 Eina_Spinlock filter_lock; /**< filter callback is called from another thread */
55}; 56};
56 57
57#endif 58#endif