Re: Logging and Threads

2025-03-04 Thread g4-lisz
Hi Marian, Thanks for your reply! What I meant with blocking is exactly what you described: "any in-progress fprintf which has taken the lock on a given FILE will mutually exclude any other fprintf from starting progress on the same FILE" I.e. if one thread is still writing, the fprintf from a

Logging and Threads

2025-03-04 Thread g4-lisz
Hi there! I never thought about this... until now: I'm using libssh in a multithreaded application and I'm logging from within the threads, using the lib's logging functions. I'm quite sure that this isn't an issue as long as the output goes to stderr. But I added a callback (ssh_set_log_callba