mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-21 13:06:15 +02:00
changed type of g_terminated to sig_atomic_t
This commit is contained in:
parent
21b4c6b982
commit
0e4bb57cff
3 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace popl;
|
using namespace popl;
|
||||||
|
|
||||||
bool g_terminated = false;
|
volatile sig_atomic_t g_terminated = false;
|
||||||
|
|
||||||
PcmDevice getPcmDevice(const std::string& soundcard)
|
PcmDevice getPcmDevice(const std::string& soundcard)
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
|
|
||||||
extern bool g_terminated;
|
extern volatile sig_atomic_t g_terminated;
|
||||||
|
|
||||||
void signal_handler(int sig)
|
void signal_handler(int sig)
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
#include "common/log.h"
|
#include "common/log.h"
|
||||||
|
|
||||||
|
|
||||||
bool g_terminated = false;
|
volatile sig_atomic_t g_terminated = false;
|
||||||
std::condition_variable terminateSignaled;
|
std::condition_variable terminateSignaled;
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue