changed type of g_terminated to sig_atomic_t

This commit is contained in:
badaix 2016-07-02 15:23:38 +02:00
parent 21b4c6b982
commit 0e4bb57cff
3 changed files with 3 additions and 3 deletions

View file

@ -38,7 +38,7 @@
using namespace std;
using namespace popl;
bool g_terminated = false;
volatile sig_atomic_t g_terminated = false;
PcmDevice getPcmDevice(const std::string& soundcard)
{

View file

@ -22,7 +22,7 @@
#include <signal.h>
#include <syslog.h>
extern bool g_terminated;
extern volatile sig_atomic_t g_terminated;
void signal_handler(int sig)
{

View file

@ -34,7 +34,7 @@
#include "common/log.h"
bool g_terminated = false;
volatile sig_atomic_t g_terminated = false;
std::condition_variable terminateSignaled;
using namespace std;