Lines Matching refs:pls

119    struct PLS* pls = 0;  in pls_add()  local
122 VERIFY(0 != (pls = (struct PLS*)calloc(1, size + sizeof(*pls) - sizeof(pls->data)))); in pls_add()
124 VERIFY(0 == ctor(ctx, (void*)pls->data)); in pls_add()
126 pls->dtor = dtor; in pls_add()
127 pls->key.type = type; in pls_add()
128 pls->key.key = key; in pls_add()
130 pls->next = me->lst; in pls_add()
131 …truct PLS*)atomic_CompareAndExchangeUP((uintptr_t*)&me->lst, (uintptr_t)pls, (uintptr_t)pls->next); in pls_add()
132 } while(prev != pls->next); in pls_add()
134 *ppo = (void*)pls->data; in pls_add()
138 if(nErr && pls) { in pls_add()
139 free(pls); in pls_add()
154 struct PLS* pls = 0; in pls_add_lookup_singleton() local
160 VERIFY(0 != (pls = (struct PLS*)calloc(1, size + sizeof(*pls) - sizeof(pls->data)))); in pls_add_lookup_singleton()
162 VERIFY(0 == ctor(ctx, (void*)pls->data)); in pls_add_lookup_singleton()
164 pls->dtor = dtor; in pls_add_lookup_singleton()
165 pls->key.type = type; in pls_add_lookup_singleton()
166 pls->key.key = key; in pls_add_lookup_singleton()
168 pls->next = me->lst; in pls_add_lookup_singleton()
170 if(pls->dtor) { in pls_add_lookup_singleton()
171 pls->dtor((void*)pls->data); in pls_add_lookup_singleton()
173 free(pls); in pls_add_lookup_singleton()
176 …truct PLS*)atomic_CompareAndExchangeUP((uintptr_t*)&me->lst, (uintptr_t)pls, (uintptr_t)pls->next); in pls_add_lookup_singleton()
177 } while(prev != pls->next); in pls_add_lookup_singleton()
179 *ppo = (void*)pls->data; in pls_add_lookup_singleton()
183 if(nErr && pls) { in pls_add_lookup_singleton()
184 free(pls); in pls_add_lookup_singleton()