Add commandline utility to resize buffer after being initialised

This commit is contained in:
Simon Rose authored and Dirk Zimoch committed 2026-10-13 10:21:35 +02:00
1 parent 53a3e4b694
commit d3ff8dca3f
3 files changed
+55

No files matched your search

+9
View File
@@ -224,6 +224,15 @@ LIBCOM_API int errlogInit(int bufsize);
*/
LIBCOM_API int errlogInit2(int bufsize, int maxMsgSize);
/**
* errlogBufResize can be used to reinitialize the error logging system with a larger buffer and maximum message size.
* The default buffer size is 1280 bytes, and the default maximum message size is 256.
*
* \param bufsize The desired buffer size
* \param maxMsgSize The desired max message size
*/
LIBCOM_API void errlogBufResize(int bufsize, int maxMsgSize);
/** Wakes up the errlog task and then waits until all messages are flushed from the queue. */
LIBCOM_API void errlogFlush(void);