TaskManager::count() now returns std::size_t; release mutex before posting progress notification

This commit is contained in:
Guenter Obiltschnig
2016-03-09 20:22:44 +01:00
parent 77c38f47d8
commit 139649fd61
2 changed files with 5 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ public:
TaskList taskList() const;
/// Returns a copy of the internal task list.
int count() const;
std::size_t count() const;
/// Returns the number of tasks in the internal task list.
void addObserver(const AbstractObserver& observer);
@@ -125,11 +125,11 @@ private:
//
// inlines
//
inline int TaskManager::count() const
inline std::size_t TaskManager::count() const
{
FastMutex::ScopedLock lock(_mutex);
return (int) _taskList.size();
return _taskList.size();
}