MCPcopy Create free account
hub / github.com/acl-dev/acl / array_append

Function array_append

lib_fiber/c/src/common/array.c:193–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193int array_append(ARRAY *a, void *obj)
194{
195 if (a->count >= a->capacity) {
196 array_grow(a, a->count + 16);
197 }
198 a->items[a->count++] = obj;
199 return a->count - 1;
200}
201
202int array_pred_insert(ARRAY *a, int position, void *obj)
203{

Callers 15

wakeup_timersFunction · 0.85
kqueue_allocFunction · 0.85
epoll_allocFunction · 0.85
array_push_backFunction · 0.85
create_ownerFunction · 0.85
add_ownerFunction · 0.85
add_waitersFunction · 0.85
thread_waiter_addFunction · 0.85
fiber_mutex_lock_onceFunction · 0.85
fiber_mutex_lock_tryFunction · 0.85
fiber_cond_timedwaitFunction · 0.85
thread_cond_timedwaitFunction · 0.85

Calls 1

array_growFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…