print a warning when invoking the scripting API's sleep()

Authored by sitter on Jun 19 2019, 9:40 AM.

Description

print a warning when invoking the scripting API's sleep()

Summary:
the sleep is implemented with a nested event loop which may result in
segfaults when something in the new loop stack accesses objects from the
original loop stack that are presently in a bad state because they were
not meant to be accessed (and only can because of the nesting).

to aid in debugging let's leave a trace of the fact that sleep was used
when in fact, using sleep is super risky.

Test Plan: warning gets printed when sleeping

Reviewers: mart

Reviewed By: mart

Subscribers: davidedmundson, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D21895

Details

Committed
sitterJun 24 2019, 10:31 AM
Reviewer
mart
Differential Revision
D21895: print a warning when invoking the scripting API's sleep()
Parents
R120:92a6d3f3a3c1: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown