Mercurial > hg > orthanc
comparison OrthancServer/ServerJobs/LuaJobManager.h @ 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 | 6498739a3c3c |
comparison
equal
deleted
inserted
replaced
3709:1f4910999fe7 | 3712:2a170a8f1faf |
---|---|
67 void AwakeTrailingSleep(); | 67 void AwakeTrailingSleep(); |
68 | 68 |
69 class Lock : public boost::noncopyable | 69 class Lock : public boost::noncopyable |
70 { | 70 { |
71 private: | 71 private: |
72 LuaJobManager& that_; | 72 LuaJobManager& that_; |
73 boost::mutex::scoped_lock lock_; | 73 boost::mutex::scoped_lock lock_; |
74 JobsEngine& engine_; | 74 JobsEngine& engine_; |
75 std::auto_ptr<SequenceOfOperationsJob::Lock> jobLock_; | 75 std::unique_ptr<SequenceOfOperationsJob::Lock> jobLock_; |
76 bool isNewJob_; | 76 bool isNewJob_; |
77 | 77 |
78 public: | 78 public: |
79 Lock(LuaJobManager& that, | 79 Lock(LuaJobManager& that, |
80 JobsEngine& engine); | 80 JobsEngine& engine); |
81 | 81 |