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

Thread: Refine SrsThreadMutex and SrsThreadLocker.

This commit is contained in:
winlin 2022-06-28 20:50:25 +08:00
parent 339d3b31cc
commit cb6a4d0143
4 changed files with 56 additions and 41 deletions

View file

@ -15,7 +15,7 @@
#include <srs_app_reload.hpp>
#include <srs_protocol_log.hpp>
class SrsMutex;
class SrsThreadMutex;
// For log TAGs.
#define TAG_MAIN "MAIN"
@ -43,7 +43,7 @@ private:
bool utc;
// TODO: FIXME: use macro define like SRS_MULTI_THREAD_LOG to switch enable log mutex or not.
// Mutex for multithread log.
SrsMutex* mutex_;
SrsThreadMutex* mutex_;
public:
SrsFileLog();
virtual ~SrsFileLog();