CVSROOT: /cvs Module name: src Changes by: clau...@cvs.openbsd.org 2025/06/04 03:04:52
Modified files: lib/libutil : Symbols.map ibuf_add.3 imsg-buffer.c imsg.h Log message: Add ibufq API to support multithreaded use of ibufs ibufq_new() allocates a new struct ibufqueue ibufq_free() flushes all ibufs and frees the ibufqueue ibufq_push() enqueues an ibuf onto the queue ibufq_pop() dequeues an ibuf from the queue ibufq_queuelen() returns the current queue length ibufq_concat() concatenates all ibufs from the 2nd queue to the end of the first queue. msgbuf_concat() enqueue all ibufs from the ibuf queue into the msgbuf. Adjust the internal msgbuf code to use ibufq as well. OK tb@