Skip to content

Commit b1d8b04

Browse files
committed
[core] Fixed SRT_ATTR_REQUIRES use.
1 parent 33a620b commit b1d8b04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

srtcore/core.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -720,13 +720,13 @@ class CUDT
720720
SRT_ATTR_EXCLUDES(m_RcvBufferLock)
721721
bool isRcvBufferReady() const;
722722

723-
SRT_ATTR_REQUIRES2(m_RcvBufferLock)
723+
SRT_ATTR_REQUIRES(m_RcvBufferLock)
724724
bool isRcvBufferReadyNoLock() const;
725725

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

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

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

0 commit comments

Comments
 (0)