提交 3f4764bb 编写于 作者: B Behdad Esfahbod

Don't lock user_data set during destruction if empty

上级 4ba647ee
......@@ -442,6 +442,11 @@ struct hb_lockable_set_t
inline void finish (lock_t &l)
{
if (!items.len) {
/* No need for locking. */
items.finish ();
return;
}
l.lock ();
while (items.len) {
item_t old = items[items.len - 1];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册