A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/Haivision/srt/commit/6e896399e3b4fdf09bd11179ecd02145727fd5ee below:

[tests] Fixed async launch TestConnection.Multiple · Haivision/srt@6e89639 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-3

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-3

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

@@ -79,8 +79,6 @@ class TestConnection

79 79

std::uniform_int_distribution<short> dis(-128, 127);

80 80

std::generate(m_buf.begin(), m_buf.end(), [dis, gen]() mutable { return (char)dis(gen); });

81 81 82 -

cout << "Generated: " << static_cast<int>(m_buf[0]) << ", " << static_cast<int>(m_buf[1]) << std::endl;

83 - 84 82

ASSERT_NE(srt_listen(m_server_sock, NSOCK), -1);

85 83

}

86 84

@@ -135,7 +133,7 @@ TEST_F(TestConnection, Multiple)

135 133

const sockaddr_in lsa = m_sa;

136 134

const sockaddr* psa = reinterpret_cast<const sockaddr*>(&lsa);

137 135 138 -

auto ex = std::async([this] { return AcceptLoop(); });

136 +

auto ex = std::async(std::launch::async, [this] { return AcceptLoop(); });

139 137 140 138

cerr << "Opening " << NSOCK << " connections\n";

141 139

@@ -180,6 +178,7 @@ TEST_F(TestConnection, Multiple)

180 178 181 179

cerr << "Synchronize with the accepting thread\n";

182 180

ex.wait();

181 +

cerr << "Synchronization done\n";

183 182

}

184 183 185 184

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