提交 5a11c875 编写于 作者: B Behdad Esfahbod

Cosmetic

上级 44533e77
......@@ -197,12 +197,13 @@ hb_blob_lock (hb_blob_t *blob)
hb_mutex_lock (blob->lock);
blob->lock_count++;
#if HB_DEBUG_BLOB
fprintf (stderr, "%p %s (%d) -> %p\n", blob, __FUNCTION__,
blob->lock_count, blob->data);
#endif
blob->lock_count++;
hb_mutex_unlock (blob->lock);
return blob->data;
......@@ -216,13 +217,14 @@ hb_blob_unlock (hb_blob_t *blob)
hb_mutex_lock (blob->lock);
assert (blob->lock_count > 0);
blob->lock_count--;
#if HB_DEBUG_BLOB
fprintf (stderr, "%p %s (%d) -> %p\n", blob, __FUNCTION__,
hb_atomic_int_get (blob->lock_count), blob->data);
blob->lock_count, blob->data);
#endif
assert (blob->lock_count > 0);
blob->lock_count--;
hb_mutex_unlock (blob->lock);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册