17 #define DESTRUCTOR_TIME_WAIT 32000
27 refinesVectorMutex.lock();
28 for(
unsigned int i = 0; i < refinesVector.size(); i++)
30 if(!(refinesVector[i].second))
32 ret = refinesVector[i].first;
33 refinesVector[i].second =
true;
37 refinesVectorMutex.unlock();
40 componentMutex.lock();
41 conditionVar.wait(componentMutex);
42 componentMutex.unlock();
53 refinesVectorMutex.lock();
54 for(
unsigned int i = 0; i < refinesVector.size(); i++)
56 if(refinesVector[i].first == refinePtr)
58 refinesVector[i].second =
false;
62 refinesVectorMutex.unlock();
63 componentMutex.lock();
64 conditionVar.signal();
65 componentMutex.unlock();
73 for(
unsigned int i = 0; i < refinesCount; i++)
87 refinesVectorMutex.lock();
88 for(
unsigned int i = 0; i < refinesVector.size(); i++)
90 if(refinesVector[i].second)
96 refinesVectorMutex.unlock();