Merge pull request #5968 from alalek:fix_5967
This commit is contained in:
commit
c3ad8af42a
@ -1085,11 +1085,14 @@ public:
|
|||||||
|
|
||||||
for(size_t i = 0; i < threads.size(); i++)
|
for(size_t i = 0; i < threads.size(); i++)
|
||||||
{
|
{
|
||||||
std::vector<void*>& thread_slots = threads[i]->slots;
|
if(threads[i])
|
||||||
if (thread_slots.size() > slotIdx && thread_slots[slotIdx])
|
|
||||||
{
|
{
|
||||||
dataVec.push_back(thread_slots[slotIdx]);
|
std::vector<void*>& thread_slots = threads[i]->slots;
|
||||||
threads[i]->slots[slotIdx] = 0;
|
if (thread_slots.size() > slotIdx && thread_slots[slotIdx])
|
||||||
|
{
|
||||||
|
dataVec.push_back(thread_slots[slotIdx]);
|
||||||
|
threads[i]->slots[slotIdx] = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1116,9 +1119,12 @@ public:
|
|||||||
|
|
||||||
for(size_t i = 0; i < threads.size(); i++)
|
for(size_t i = 0; i < threads.size(); i++)
|
||||||
{
|
{
|
||||||
std::vector<void*>& thread_slots = threads[i]->slots;
|
if(threads[i])
|
||||||
if (thread_slots.size() > slotIdx && thread_slots[slotIdx])
|
{
|
||||||
dataVec.push_back(thread_slots[slotIdx]);
|
std::vector<void*>& thread_slots = threads[i]->slots;
|
||||||
|
if (thread_slots.size() > slotIdx && thread_slots[slotIdx])
|
||||||
|
dataVec.push_back(thread_slots[slotIdx]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user