1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-05 07:07:29 +02:00

Exit the thread properly in the destructor of Monitor objects

This commit is contained in:
Paul Cercueil 2013-07-19 14:29:51 -04:00
parent d5280ebc7b
commit ebce540dfc

View File

@ -91,6 +91,7 @@ Monitor::Monitor(std::string path, unsigned int flags) : path(path)
Monitor::~Monitor(void)
{
pthread_kill(thd, SIGINT);
pthread_cancel(thd);
pthread_join(thd, NULL);
}
#endif