Skip to content

Commit

Permalink
[core] Fixed SRT_ATTR_REQUIRES use.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Aug 21, 2023
1 parent 33a620b commit b1d8b04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions srtcore/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -720,13 +720,13 @@ class CUDT
SRT_ATTR_EXCLUDES(m_RcvBufferLock)
bool isRcvBufferReady() const;

SRT_ATTR_REQUIRES2(m_RcvBufferLock)
SRT_ATTR_REQUIRES(m_RcvBufferLock)
bool isRcvBufferReadyNoLock() const;

// TSBPD thread main function.
static void* tsbpd(void* param);

/// Drop too late packets (receiver side). Updaet loss lists and ACK positions.
/// Drop too late packets (receiver side). Update loss lists and ACK positions.
/// The @a seqno packet itself is not dropped.
/// @param seqno [in] The sequence number of the first packets following those to be dropped.
/// @return The number of packets dropped.
Expand Down Expand Up @@ -823,7 +823,7 @@ class CUDT
CSndLossList* m_pSndLossList; // Sender loss list
CPktTimeWindow<16, 16> m_SndTimeWindow; // Packet sending time window
#ifdef ENABLE_MAXREXMITBW
CSndRateEstimator m_SndRexmitRate; // Retransmission retae estimation.
CSndRateEstimator m_SndRexmitRate; // Retransmission rate estimation.
#endif

atomic_duration m_tdSendInterval; // Inter-packet time, in CPU clock cycles
Expand Down Expand Up @@ -866,7 +866,7 @@ class CUDT
// and this is the sequence number that refers to the block at position [0]. Upon acknowledgement,
// this value is shifted to the acknowledged position, and the blocks are removed from the
// m_pSndBuffer buffer up to excluding this sequence number.
// XXX CONSIDER removing this field and give up the maintenance of this sequence number
// XXX CONSIDER removing this field and giving up the maintenance of this sequence number
// to the sending buffer. This way, extraction of an old packet for retransmission should
// require only the lost sequence number, and how to find the packet with this sequence
// will be up to the sending buffer.
Expand Down

0 comments on commit b1d8b04

Please sign in to comment.