+3
-4
lines changedFilter options
+3
-4
lines changed Original file line number Diff line number Diff line change
@@ -100,8 +100,8 @@ struct AlarmExit: public std::runtime_error
100
100
}
101
101
};
102
102
103
-
volatile bool int_state = false;
104
-
volatile bool timer_state = false;
103
+
srt::sync::atomic<bool> int_state;
104
+
srt::sync::atomic<bool> timer_state;
105
105
void OnINT_ForceExit(int)
106
106
{
107
107
Verb() << "\n-------- REQUESTED INTERRUPT!\n";
Original file line number Diff line number Diff line change
@@ -286,7 +286,7 @@ class Tunnel
286
286
Tunnelbox* parent_box;
287
287
std::unique_ptr<Medium> med_acp, med_clr;
288
288
Engine acp_to_clr, clr_to_acp;
289
-
volatile bool running = true;
289
+
srt::sync::atomic<bool> running{true};
290
290
std::mutex access;
291
291
292
292
public:
Original file line number Diff line number Diff line change
@@ -24,7 +24,6 @@
24
24
typedef std::vector<char> bytevector;
25
25
extern bool transmit_total_stats;
26
26
extern bool g_stats_are_printed_to_stdout;
27
-
extern volatile bool transmit_throw_on_interrupt;
28
27
extern unsigned long transmit_bw_report;
29
28
extern unsigned long transmit_stats_report;
30
29
extern unsigned long transmit_chunk_size;
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