TT#14008 skip object precreation on second pass

Change-Id: I61a4c1b95b575489d6257c6bb5e3e1833ae6c65b
pull/1219/head
Richard Fuchs 5 years ago
parent 52d9768418
commit 6893a7c96d

@ -162,13 +162,6 @@ restart:
// if (created)
// *created = 1;
// keep entry filled for next SSRC
if (g_atomic_pointer_get(&ht->precreat) == NULL) {
struct ssrc_entry *nextent = ht->create_func(ht->uptr);
if (!g_atomic_pointer_compare_and_exchange(&ht->precreat, NULL, nextent))
obj_put(nextent);
}
return ent;
}
void free_ssrc_hash(struct ssrc_hash **ht) {

Loading…
Cancel
Save