Searched refs:rootbuf (Results 1 – 1 of 1) sorted by relevance
25 Buffer *rootbuf; member42 buf->rootbuf = buf; in BufferMalloc()60 ref->rootbuf = buf->rootbuf; in BufferRefMalloc()61 atomic_fetch_add_explicit(&ref->rootbuf->refcount, 1, memory_order_seq_cst); in BufferRefMalloc()98 if (buf->rootbuf == buf) { in BufferResize()100 atomic_fetch_add_explicit(&ref->rootbuf->refcount, -1, memory_order_seq_cst); in BufferResize()117 if (buf->rootbuf != buf) { in BufferFree()118 if (atomic_fetch_add_explicit(&buf->rootbuf->refcount, -1, memory_order_seq_cst) == 1) { in BufferFree()119 free(buf->rootbuf); in BufferFree()123 free(buf->rootbuf); in BufferFree()