Skip to content

Commit

Permalink
[core] Make field for bandwidth atomic to avoid thread clash (#3093).
Browse files Browse the repository at this point in the history
  • Loading branch information
ethouris authored Dec 18, 2024
1 parent 59e2c9c commit b252637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srtcore/congctl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void SrtCongestion::Check()

class LiveCC: public SrtCongestionControlBase
{
int64_t m_llSndMaxBW; //Max bandwidth (bytes/sec)
srt::sync::atomic<int64_t> m_llSndMaxBW; //Max bandwidth (bytes/sec)
srt::sync::atomic<size_t> m_zSndAvgPayloadSize; //Average Payload Size of packets to xmit
size_t m_zMaxPayloadSize;
size_t m_zHeaderSize;
Expand Down

0 comments on commit b252637

Please sign in to comment.