Commit bc9d3473 authored by Martin Marinov's avatar Martin Marinov
Browse files

Add Progress::Context::active().

parent c61a1e2e
......@@ -76,6 +76,11 @@ public:
*/
const Node* root_node() const { return root_node_; }
/*!
Get if the context is active, i.e., there is an active operation in progress.
*/
bool active() const { return actv_node_ != root_node_; }
/*!
Request progress abort, intended to be called asynchronously from a "tracking"
thread.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment