diff options
author | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2014-10-02 10:48:09 +0300 |
---|---|---|
committer | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2014-10-02 11:36:52 +0200 |
commit | c7a8b70b4e9afef864652cf98a934d99d49bb36f (patch) | |
tree | d77c921f4465b8bd1f96b3b57750477a15c09f8b /src/client/qwaylanddisplay_p.h | |
parent | d480db141ec78ed85b299910d3796b4232264bc4 (diff) |
Call ::exit() from the gui thread only
::exit() is not thread safe, so make sure to not call it more than one
time, once from the gui thread and once from the wayland event thread.
Change-Id: I80905c6d996cb827a5101ae6d6c9bc12a267ba71
Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'src/client/qwaylanddisplay_p.h')
-rw-r--r-- | src/client/qwaylanddisplay_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/qwaylanddisplay_p.h b/src/client/qwaylanddisplay_p.h index b0142004e..796c54756 100644 --- a/src/client/qwaylanddisplay_p.h +++ b/src/client/qwaylanddisplay_p.h @@ -164,6 +164,7 @@ public slots: private: void waitForScreens(); + void exitWithError(); struct Listener { RegistryListener listener; |