Kaydet (Commit) dfe593b3 authored tarafından Michael Stahl's avatar Michael Stahl

sc: no such thing as std::vector::find

Change-Id: I11bb688a8e0affda9ed78a61d9aba3d244914f8c
üst a74b3e89
......@@ -9,6 +9,9 @@
#include "threadpool.hxx"
#include <algorithm>
class ThreadPool::ThreadWorker : public salhelper::Thread
{
ThreadPool *mpPool;
......@@ -102,7 +105,8 @@ void ThreadPool::waitUntilWorkersDone()
{
rtl::Reference< ThreadWorker > xWorker = maWorkers.back();
maWorkers.pop_back();
assert( maWorkers.find( xWorker ) == maWorkers.end() );
assert(std::find(maWorkers.begin(), maWorkers.end(), xWorker)
== maWorkers.end());
xWorker->signalNewWork();
aGuard.clear();
{ // unlocked
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment