LASSERT(atomic_read(&obd->u.cli.cl_mgc_refcount) >0);if(!atomic_dec_and_test(&obd->u.cli.cl_mgc_refcount)) {/* This is not fatal, every client that stops will call in here. */CDEBUG(D_MOUNT,"mgc still has %d references.\n", atomic_read(&obd->u.cli.cl_mgc_refcount)); ...
g_return_if_fail (colors->ref_count >0);if(g_atomic_int_dec_and_test((volatileint*)&colors->ref_count)) g_slice_free (StIconColors, colors); } 开发者ID:2gud4u,项目名称:Cinnamon,代码行数:17,代码来源:st-icon-colors.c 示例8: iris_rrobin_unref ▲点赞 1▼ /** * iris_rrobin_...