A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Haivision/srt/commit/8d1643e111acba47c09415d18fbf85b107584f68 below:

[core] Fixed warning on SRT_ATTR_REQUIRES. · Haivision/srt@8d1643e · GitHub

File tree Expand file treeCollapse file tree 3 files changed

+6

-2

lines changed

Filter options

Expand file treeCollapse file tree 3 files changed

+6

-2

lines changed Original file line number Diff line number Diff line change

@@ -543,7 +543,7 @@ class CUDT

543 543 544 544

/// @brief Drop packets too late to be delivered if any.

545 545

/// @returns the number of packets actually dropped.

546 -

SRT_ATTR_REQUIRES(m_RecvAckLock, m_StatsLock)

546 +

SRT_ATTR_REQUIRES2(m_RecvAckLock, m_StatsLock)

547 547

int sndDropTooLate();

548 548 549 549

/// @bried Allow packet retransmission.

Original file line number Diff line number Diff line change

@@ -172,7 +172,7 @@ class PacketFilter

172 172

// Things being done:

173 173

// 1. The filter is individual, so don't copy it. Set NULL.

174 174

// 2. This will be configued anyway basing on possibly a new rule set.

175 -

PacketFilter(const PacketFilter& source SRT_ATR_UNUSED): m_filter(), m_sndctlpkt(0), m_unitq() {}

175 +

PacketFilter(const PacketFilter& source SRT_ATR_UNUSED): m_filter(), m_parent(), m_sndctlpkt(0), m_unitq() {}

176 176 177 177

// This function will be called by the parent CUDT

178 178

// in appropriate time. It should select appropriate

Original file line number Diff line number Diff line change

@@ -101,6 +101,7 @@ used by SRT library internally.

101 101

#define SRT_ATTR_ACQUIRED_BEFORE(...)

102 102

#define SRT_ATTR_ACQUIRED_AFTER(...)

103 103

#define SRT_ATTR_REQUIRES(expr) _Requires_lock_held_(expr)

104 +

#define SRT_ATTR_REQUIRES2(expr1, expr2) _Requires_lock_held_(expr1) _Requires_lock_held_(expr2)

104 105

#define SRT_ATTR_REQUIRES_SHARED(...)

105 106

#define SRT_ATTR_ACQUIRE(expr) _Acquires_nonreentrant_lock_(expr)

106 107

#define SRT_ATTR_ACQUIRE_SHARED(...)

@@ -143,6 +144,9 @@ used by SRT library internally.

143 144

#define SRT_ATTR_REQUIRES(...) \

144 145

THREAD_ANNOTATION_ATTRIBUTE__(requires_capability(__VA_ARGS__))

145 146 147 +

#define SRT_ATTR_REQUIRES2(...) \

148 +

THREAD_ANNOTATION_ATTRIBUTE__(requires_capability(__VA_ARGS__))

149 + 146 150

#define SRT_ATTR_REQUIRES_SHARED(...) \

147 151

THREAD_ANNOTATION_ATTRIBUTE__(requires_shared_capability(__VA_ARGS__))

148 152

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4