Skip to content

Commit

Permalink
[core] Fix build when STDCXX_SYNC is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
yomnes0 committed Jun 17, 2024
1 parent 82a052e commit a4686d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions srtcore/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ int srt::CUDTUnited::newConnection(const SRTSOCKET listen,

try
{
ScopedLock col(ls->core().m_ConnectionLock);
ns = new CUDTSocket(*ls);
// No need to check the peer, this is the address from which the request has come.
ns->m_PeerAddr = peer;
Expand Down
5 changes: 3 additions & 2 deletions srtcore/sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -946,8 +946,9 @@ int genRandomInt(int minVal, int maxVal);
class SharedMutex
{
private:
std::condition_variable m_pLockWriteCond;
std::condition_variable m_pLockReadCond;
Condition m_pLockWriteCond;
Condition m_pLockReadCond;

Mutex m_pMutex;

int m_pCountRead;
Expand Down

0 comments on commit a4686d3

Please sign in to comment.