Add note re deadlocks

This commit is contained in:
Behdad Esfahbod 2011-05-06 16:28:10 -04:00
parent 34fb5521a5
commit 08611d5194
2 changed files with 5 additions and 0 deletions

View File

@ -293,6 +293,7 @@ hb_script_get_horizontal_direction (hb_script_t script)
* should switch to using that insted for these too. * 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; static hb_static_mutex_t user_data_mutex;
bool bool

View File

@ -111,6 +111,10 @@ struct hb_static_mutex_t : hb_mutex_t
HB_END_DECLS 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> template <typename item_t>
struct hb_threadsafe_set_t struct hb_threadsafe_set_t
{ {