Add note re deadlocks
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 6 May 2011 20:28:10 +0000 (16:28 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 6 May 2011 20:28:10 +0000 (16:28 -0400)
src/hb-common.cc
src/hb-mutex-private.hh

index a223edb..02314b3 100644 (file)
@@ -293,6 +293,7 @@ hb_script_get_horizontal_direction (hb_script_t script)
  * should switch to using that insted for these too.
  */
 
+/* XXX  this can result in deadlocks because we call user callbacks */
 static hb_static_mutex_t user_data_mutex;
 
 bool
index 65e5892..b52d970 100644 (file)
@@ -111,6 +111,10 @@ struct hb_static_mutex_t : hb_mutex_t
 HB_END_DECLS
 
 
+/* XXX If the finish() callbacks of items in the set recursively try to
+ * modify the set, deadlock occurs.  This needs fixing in set proper in
+ * fact. */
+
 template <typename item_t>
 struct hb_threadsafe_set_t
 {