output/Interface: the default Pause() implementation fails
Fixes regression from commit 31bad5f7af
:
if Pause() returns true, the output thread is running a busy loop,
causing 100% CPU usage, instead of just closing the output.
Closes #105
This commit is contained in:
parent
987c505906
commit
91438b6540
@ -141,7 +141,10 @@ public:
|
|||||||
* @return false on error (output will be closed by caller),
|
* @return false on error (output will be closed by caller),
|
||||||
* true for continue to pause
|
* true for continue to pause
|
||||||
*/
|
*/
|
||||||
virtual bool Pause() noexcept { return true; }
|
virtual bool Pause() noexcept {
|
||||||
|
/* fail because this method is not implemented */
|
||||||
|
return false;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user