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:
parent
339d3b31cc
commit
cb6a4d0143
4 changed files with 56 additions and 41 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue