1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

SRT: add srt log handle, srs log supoort multithread

This commit is contained in:
hondaxiao 2022-06-12 23:18:18 +08:00 committed by winlin
parent d03c6793b8
commit 910b5945af
5 changed files with 61 additions and 0 deletions

View file

@ -39,6 +39,9 @@ private:
bool log_to_file_tank;
// Whether use utc time.
bool utc;
// TODO: FIXME: use macro define like SRS_MULTI_THREAD_LOG to switch enable log mutex or not.
// Mutex for multithread log.
pthread_mutex_t mutex_;
public:
SrsFileLog();
virtual ~SrsFileLog();