Merge commit '8ac11a97c29ac9ce3e4099e77a9aa9475c1002b4' into 2.4

This commit is contained in:
Markus Mäkelä
2019-09-23 14:07:32 +03:00
3 changed files with 32 additions and 6 deletions

View File

@ -335,6 +335,16 @@ public:
virtual ~Worker();
/**
* Returns the id of the worker
*
* @return The address of the worker cast to an int
*/
virtual int id() const
{
return (intptr_t)this;
}
int load(Load::counter_t counter)
{
return m_load.percentage(counter);