Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/sta/DispatchQueue.hh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public:
DispatchQueue(size_t thread_cnt);
~DispatchQueue();
void setThreadCount(size_t thread_count);
size_t getThreadCount() const;
// Dispatch and copy.
void dispatch(const fp_t& op);
// Dispatch and move.
Expand Down
6 changes: 6 additions & 0 deletions util/DispatchQueue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ DispatchQueue::setThreadCount(size_t thread_count)
}
}

size_t
DispatchQueue::getThreadCount() const
{
return threads_.size();
}

void
DispatchQueue::finishTasks()
{
Expand Down