projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused variable.
[dcpomatic.git]
/
src
/
lib
/
ui_signaller.h
diff --git
a/src/lib/ui_signaller.h
b/src/lib/ui_signaller.h
index 428ab698f1d3028f05c42705bb1ad76787120ba1..1d62547f61f79f5019f506b3a5b81712bc49167b 100644
(file)
--- a/
src/lib/ui_signaller.h
+++ b/
src/lib/ui_signaller.h
@@
-27,7
+27,7
@@
/** A class to allow signals to be emitted from non-UI threads and handled
* by a UI thread.
*/
/** A class to allow signals to be emitted from non-UI threads and handled
* by a UI thread.
*/
-class UISignaller
+class UISignaller
: public boost::noncopyable
{
public:
/** Create a UISignaller. Must be called from the UI thread */
{
public:
/** Create a UISignaller. Must be called from the UI thread */
@@
-55,12
+55,15
@@
public:
}
/** Call this in the UI when it is idle */
}
/** Call this in the UI when it is idle */
-
void
ui_idle () {
- _service.poll ();
+
size_t
ui_idle () {
+
return
_service.poll ();
}
/** This should wake the UI and make it call ui_idle() */
}
/** This should wake the UI and make it call ui_idle() */
- virtual void wake_ui () = 0;
+ virtual void wake_ui () {
+ /* This is only a sensible implementation when there is no GUI... */
+ ui_idle ();
+ }
private:
/** A io_service which is used as the conduit for messages */
private:
/** A io_service which is used as the conduit for messages */