killpoco: removed Poco::Thread from net directory
Removed unused Poco/Thread.h header Change-Id: Iafcd32656f0153ec97a4db0fe0259e8b34f79add Reviewed-on: https://gerrit.libreoffice.org/c/online/+/83290 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
This commit is contained in:
parent
afcca641e5
commit
8aa42bc1ba
2 changed files with 3 additions and 7 deletions
|
@ -35,7 +35,6 @@
|
|||
#include <Poco/Util/Option.h>
|
||||
#include <Poco/Util/OptionSet.h>
|
||||
#include <Poco/Runnable.h>
|
||||
#include <Poco/Thread.h>
|
||||
|
||||
#include <Util.hpp>
|
||||
|
||||
|
@ -44,7 +43,6 @@ using Poco::Net::HTTPRequest;
|
|||
using Poco::Net::HTTPResponse;
|
||||
using Poco::Net::WebSocket;
|
||||
using Poco::Runnable;
|
||||
using Poco::Thread;
|
||||
using Poco::Util::Application;
|
||||
|
||||
const char *HostName = "127.0.0.1";
|
||||
|
@ -178,8 +176,7 @@ struct Client : public Poco::Util::Application
|
|||
{
|
||||
std::cerr << "testLadder\n";
|
||||
ThreadWorker ladder;
|
||||
Thread thread;
|
||||
thread.start(ladder);
|
||||
std::thread thread([&ladder]{ladder.run();});
|
||||
thread.join();
|
||||
}
|
||||
|
||||
|
@ -187,11 +184,11 @@ struct Client : public Poco::Util::Application
|
|||
{
|
||||
std::cerr << "testParallel\n";
|
||||
const int num = 10;
|
||||
Thread snakes[num];
|
||||
std::thread snakes[num];
|
||||
ThreadWorker ladders[num];
|
||||
|
||||
for (size_t i = 0; i < num; i++)
|
||||
snakes[i].start(ladders[i]);
|
||||
snakes[i] = std::thread([&ladders, i]{ladders[i].run();});
|
||||
|
||||
for (int i = 0; i < num; i++)
|
||||
snakes[i].join();
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
#include <Poco/Net/Socket.h>
|
||||
#include <Poco/Path.h>
|
||||
#include <Poco/StreamCopier.h>
|
||||
#include <Poco/Thread.h>
|
||||
#include <Poco/URI.h>
|
||||
#include <cppunit/extensions/HelperMacros.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue