lights.push_back((hostAddress + resourceURI));
g_light = (*rsrc);
+ cv2.notify_all();
}
else
{
configurationResource = (*rsrc);
+ cv2.notify_all();
}
}
cv2.notify_all();
vector<string> types;
types.push_back("oic.wk.con");
- result = groupMgr->findCandidateResources(types, &foundResources);
+ result = groupMgr->findCandidateResources(types, &foundResources, 3);
std::mutex blocker;
std::unique_lock < std::mutex > lock(blocker);
vector<string> types;
types.push_back("oic.wk.con");
- result = groupMgr->findCandidateResources(types, &foundResources);
+ result = groupMgr->findCandidateResources(types, &foundResources, 3);
std::mutex blocker;
std::unique_lock < std::mutex > lock(blocker);
vector<string> types;
types.push_back("oic.wk.con");
- result = groupMgr->findCandidateResources(types, &foundResources);
+ result = groupMgr->findCandidateResources(types, &foundResources, 3);
std::mutex blocker2;
std::unique_lock < std::mutex > lock2(blocker2);
vector<string> types;
types.push_back("oic.wk.con");
- result = groupMgr->findCandidateResources(types, &foundResources);
+ result = groupMgr->findCandidateResources(types, &foundResources, 3);
std::mutex blocker2;
std::unique_lock < std::mutex > lock2(blocker2);
vector<string> types;
types.push_back("oic.wk.mnt");
- result = groupMgr->findCandidateResources(types, &foundResources);
+ result = groupMgr->findCandidateResources(types, &foundResources, 3);
std::mutex blocker;
std::unique_lock < std::mutex > lock(blocker);
vector<string> types;
types.push_back("oic.wk.mnt");
- result = groupMgr->findCandidateResources(types, &foundResources);
+ result = groupMgr->findCandidateResources(types, &foundResources, 3);
std::mutex blocker;
std::unique_lock < std::mutex > lock(blocker);