+5
-5
lines changedFilter options
+5
-5
lines changed Original file line number Diff line number Diff line change
@@ -348,7 +348,7 @@ class TestEnforcedEncryption
348
348
const TResult &expect = test.expected_result;
349
349
350
350
// Start testing
351
-
volatile bool caller_done = false;
351
+
srt::sync::atomic<bool> caller_done;
352
352
sockaddr_in sa;
353
353
memset(&sa, 0, sizeof sa);
354
354
sa.sin_family = AF_INET;
Original file line number Diff line number Diff line change
@@ -429,7 +429,7 @@ TEST(SyncEvent, WaitForTwoNotifyOne)
429
429
const int VAL_SIGNAL = 42;
430
430
const int VAL_NO_SIGNAL = 0;
431
431
432
-
volatile bool resource_ready = true;
432
+
srt::sync::atomic<bool> resource_ready(true);
433
433
434
434
auto wait_async = [&](Condition* cond, Mutex* mutex, const steady_clock::duration& timeout, int id) {
435
435
UniqueLock lock(*mutex);
@@ -593,7 +593,7 @@ void* dummythread(void* param)
593
593
TEST(SyncThread, Joinable)
594
594
{
595
595
CThread foo;
596
-
volatile bool thread_finished = false;
596
+
srt::sync::atomic<bool> thread_finished;
597
597
598
598
StartThread(foo, dummythread, (void*)&thread_finished, "DumyThread");
599
599
Original file line number Diff line number Diff line change
@@ -100,7 +100,7 @@ struct AlarmExit: public std::runtime_error
100
100
}
101
101
};
102
102
103
-
volatile bool timer_state = false;
103
+
srt::sync::atomic<bool> timer_state;
104
104
void OnINT_ForceExit(int)
105
105
{
106
106
cerr << "\n-------- REQUESTED INTERRUPT!\n";
Original file line number Diff line number Diff line change
@@ -105,7 +105,7 @@ class SrtMainLoop
105
105
std::exception_ptr m_input_xp;
106
106
107
107
void InputRunner();
108
-
volatile bool m_input_running = false;
108
+
srt::sync::atomic<bool> m_input_running;
109
109
110
110
public:
111
111
SrtMainLoop(const string& srt_uri, bool input_echoback, const string& input_spec, const vector<string>& output_spec);
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