mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
merge some changes from develop branch; modernize and clean-up code; remove support for compiling without POCO_WIN32_UTF8
This commit is contained in:
@@ -106,6 +106,16 @@ protected:
|
||||
///
|
||||
/// A Task should use this method in favor of Thread::sleep().
|
||||
|
||||
bool yield();
|
||||
/// Yields cpu to other threads
|
||||
///
|
||||
/// If the task is cancelled while it is suspended,
|
||||
/// yield() will return true. If the tasks resumes
|
||||
/// without being cancelled, the
|
||||
/// return value is false.
|
||||
///
|
||||
/// A Task should use this method in favor of Thread::yield().
|
||||
|
||||
void setProgress(float progress);
|
||||
/// Sets the task's progress.
|
||||
/// The value should be between 0.0 (just started)
|
||||
|
||||
Reference in New Issue
Block a user