mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-25 20:21:52 +02:00
Exit the thread properly in the destructor of Monitor objects
This commit is contained in:
parent
d5280ebc7b
commit
ebce540dfc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user