Skip to content
Snippets Groups Projects
Commit c9f77c3f authored by Ezekiel Dohmen's avatar Ezekiel Dohmen
Browse files

Removing cout and adding compile flag to fix warning

parent 0f0b7a0f
No related branches found
No related tags found
3 merge requests!439RCG 5.0 release fro deb 10,!415Cdsrfm to use new dolphin interface,!411Userspace dolphin daemon, netlink dolphin setup for real time models
......@@ -2,6 +2,8 @@ project (dolphin_daemon)
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp ${CMAKE_CURRENT_SOURCE_DIR}/src/DolphinKernelProxy.cpp)
target_compile_options(${PROJECT_NAME} PRIVATE -std=gnu++17)
target_include_directories(${PROJECT_NAME}
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/include/
......
......@@ -15,22 +15,10 @@ using namespace std;
static volatile int g_stop = 0;
void signal_handler(int dummy)
{
std::cout << "Got exit signal, exiting...\n";
spdlog::warn("Got exit signal, exiting...");
g_stop = 1;
}
class TestThread : public LIGO_Thread
{
public:
void thread_body()
{
while (!should_stop())
{
std::this_thread::sleep_for(std::chrono::seconds(1));
std::cout << "Running" << std::endl;
}
}
};
int main(int argc, char * argv[])
{
......@@ -44,7 +32,7 @@ int main(int argc, char * argv[])
tt->nonblocking_start();
std::cout << "Started thread..." << std::endl;
spdlog::info("Started DolphinKernelProxy thread... Waiting for mcast netlink requests.");
while( !g_stop )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment