Skip to content
This repository was archived by the owner on Jun 25, 2020. It is now read-only.

Commit b48eca9

Browse files
committedDec 5, 2017
Minor optimization of Dispatcher::dispatcher handler
1 parent 74c0e7e commit b48eca9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/dispatcher.cc

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Dispatcher::Dispatcher() {
66
std::vector<std::list<std::function<void()>>::iterator> its;
77
{
88
std::unique_lock<std::mutex> lock(functions_mutex);
9+
if(functions.empty())
10+
return;
911
its.reserve(functions.size());
1012
for(auto it=functions.begin();it!=functions.end();++it)
1113
its.emplace_back(it);

0 commit comments

Comments
 (0)
This repository has been archived.