diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-01-23 11:56:41 +0100 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-07-13 12:10:20 +0200 |
commit | c0710abfebd320903a3edb23d4b1441ea351b0be (patch) | |
tree | d0a02eceed8c830cfc7a1da2bc7d14d70c8a69aa /include | |
parent | dc63cc326ee5757124cef45e470d290e6e32002e (diff) |
Add some Scheduler unit tests and logging
1. calling Start() for invoked tasks
2. correctly schedule by priority
3. self-stopping AutoTimer
This also adds SAL_INFO output to Scheduler and Task to log the
scheduling processing tasks.
Change-Id: I3c8a708d1fd51c550320f8af3f9486c43c32e358
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/svapp.hxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx index 0891859c79e1..c108d4b6d992 100644 --- a/include/vcl/svapp.hxx +++ b/include/vcl/svapp.hxx @@ -462,18 +462,25 @@ public: */ static void Quit(); - /** Attempt to reschedule in processing of current event(s) + /** Attempt to process current pending event(s) + + It doesn't sleep if no events are available for processing. @param bAllEvents If set to true, then try to process all the events. If set to false, then only process the current event. Defaults to false. + @returns true if any event was processed. + @see Execute, Quit, Yield, EndYield, GetSolarMutex, GetMainThreadIdentifier, ReleaseSolarMutex, AcquireSolarMutex, */ - static void Reschedule( bool bAllEvents = false ); + static bool Reschedule( bool bAllEvents = false ); + + /** Process the next event. - /** Allow processing of the next event. + It sleeps if no event is available for processing and just returns + if an event was processed. @see Execute, Quit, Reschedule, EndYield, GetSolarMutex, GetMainThreadIdentifier, ReleaseSolarMutex, AcquireSolarMutex, |