Mercurial > hg > orthanc
comparison OrthancServer/ServerJobs/LuaJobManager.cpp @ 2616:2f3007bf0708 jobs
event queues in Lua, serialization of sequence of operations
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 May 2018 12:25:37 +0200 |
parents | f7a84b551ee4 |
children | 1232922c8793 |
comparison
equal
deleted
inserted
replaced
2614:3200223f9ade | 2616:2f3007bf0708 |
---|---|
117 | 117 |
118 if (isNewJob_) | 118 if (isNewJob_) |
119 { | 119 { |
120 // Need to create a new job, as the previous one is either | 120 // Need to create a new job, as the previous one is either |
121 // finished, or is getting too long | 121 // finished, or is getting too long |
122 that_.currentJob_ = new SequenceOfOperationsJob("Lua"); | 122 that_.currentJob_ = new SequenceOfOperationsJob; |
123 jobLock_.reset(new SequenceOfOperationsJob::Lock(*that_.currentJob_)); | 123 that_.currentJob_->SetDescription("Lua"); |
124 jobLock_->SetTrailingOperationTimeout(that_.trailingTimeout_); | 124 |
125 { | |
126 jobLock_.reset(new SequenceOfOperationsJob::Lock(*that_.currentJob_)); | |
127 jobLock_->SetTrailingOperationTimeout(that_.trailingTimeout_); | |
128 } | |
125 } | 129 } |
126 | 130 |
127 assert(jobLock_.get() != NULL); | 131 assert(jobLock_.get() != NULL); |
128 } | 132 } |
129 | 133 |