Mercurial > hg > orthanc
comparison Core/DicomNetworking/DicomServer.cpp @ 3712:2a170a8f1faf
replacing std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Mar 2020 15:32:45 +0100 |
parents | 94f4a18a79cc |
children | 56f2397f027a |
comparison
equal
deleted
inserted
replaced
3709:1f4910999fe7 | 3712:2a170a8f1faf |
---|---|
51 { | 51 { |
52 struct DicomServer::PImpl | 52 struct DicomServer::PImpl |
53 { | 53 { |
54 boost::thread thread_; | 54 boost::thread thread_; |
55 T_ASC_Network *network_; | 55 T_ASC_Network *network_; |
56 std::auto_ptr<RunnableWorkersPool> workers_; | 56 std::unique_ptr<RunnableWorkersPool> workers_; |
57 }; | 57 }; |
58 | 58 |
59 | 59 |
60 void DicomServer::ServerThread(DicomServer* server) | 60 void DicomServer::ServerThread(DicomServer* server) |
61 { | 61 { |
63 | 63 |
64 while (server->continue_) | 64 while (server->continue_) |
65 { | 65 { |
66 /* receive an association and acknowledge or reject it. If the association was */ | 66 /* receive an association and acknowledge or reject it. If the association was */ |
67 /* acknowledged, offer corresponding services and invoke one or more if required. */ | 67 /* acknowledged, offer corresponding services and invoke one or more if required. */ |
68 std::auto_ptr<Internals::CommandDispatcher> dispatcher(Internals::AcceptAssociation(*server, server->pimpl_->network_)); | 68 std::unique_ptr<Internals::CommandDispatcher> dispatcher(Internals::AcceptAssociation(*server, server->pimpl_->network_)); |
69 | 69 |
70 try | 70 try |
71 { | 71 { |
72 if (dispatcher.get() != NULL) | 72 if (dispatcher.get() != NULL) |
73 { | 73 { |