xant / libhl

Simple and fast C library implementing a thread-safe API to manage hash-tables, linked lists, lock-free ring buffers and queues
GNU Lesser General Public License v3.0
420 stars 117 forks source link

Is rbuf lock-free for single-thread read and single-thread write ? #33

Closed xfirefly closed 1 year ago

xfirefly commented 1 year ago

Use only rbuf_create/rbuf_read/rbuf_write . Is rbuf lock-free for single-thread read and single-thread write ?
Do I need to use mutex to lock read/write access to rfx/wfx/used?