Lines Matching defs:refcount
71 int32_t refcount; // number of clients referencing this
554 kfse->refcount = 1;
563 kfse_dest->refcount = 1;
578 if (kfse->refcount < 1) {
579 panic("add_fsevent: line %d: kfse recount %d but should be at least 1\n", __LINE__, kfse->refcount);
748 // if (kfse->refcount < 1) {
749 // panic("add_fsevent: line %d: kfse recount %d but should be at least 1\n", __LINE__, kfse->refcount);
775 old_refcount = OSAddAtomic(-1, &kfse->refcount);
787 if (kfse->refcount < 0) {
788 panic("release_event_ref: bogus kfse refcount %d\n", kfse->refcount);
791 if (kfse->refcount > 0 || kfse->type == FSE_INVALID) {
798 // doing anything because if the refcount is > 0 then
813 if (kfse->dest && OSAddAtomic(-1, &kfse->dest->refcount) == 1) {
1015 if (kfse != NULL && kfse->type != FSE_INVALID && kfse->refcount >= 1) {
1101 OSAddAtomic(1, &kfse->refcount);
1129 if (kfse != NULL && kfse->type != FSE_INVALID && kfse->refcount >= 1) {
1230 panic("fsevents: copy_out_kfse: asked to copy out an invalid event (kfse %p, refcount %d fref ptr %p)\n", kfse, kfse->refcount, kfse->str);
1459 if (!kfse || kfse->type == FSE_INVALID || kfse->refcount < 1) {