# HG changeset patch # User Sebastien Jodogne # Date 1780326246 -7200 # Node ID 276aa95f145a5baedee750b46db839c5eb0f2264 # Parent 12125996722ca9f575780f1bc9a03cfa513115cc removed ServerContext::transcoderThreadPool_ diff -r 12125996722c -r 276aa95f145a OrthancServer/Sources/ServerContext.cpp --- a/OrthancServer/Sources/ServerContext.cpp Mon Jun 01 17:01:26 2026 +0200 +++ b/OrthancServer/Sources/ServerContext.cpp Mon Jun 01 17:04:06 2026 +0200 @@ -612,13 +612,14 @@ if (transcoder_.get() != NULL) { - transcoderThreadPool_.reset(new ThreadPool); - transcoderThreadPool_->SetCountThreads(2); // TODO-Streaming - Parameter - transcoderThreadPool_->SetLoggingThreadName("TRANSCODER"); - transcoderThreadPool_->SetDequeueTimeout(100); - transcoderThreadPool_->Start(); + boost::shared_ptr pool(new ThreadPool); + pool.reset(new ThreadPool); + pool->SetCountThreads(2); // TODO-Streaming - Parameter + pool->SetLoggingThreadName("TRANSCODER"); + pool->SetDequeueTimeout(100); + pool->Start(); - transcoderReader_.reset(new DataSourceReader(transcoderThreadPool_, new TranscoderDataSource(transcoder_, storageAreaReader_))); + transcoderReader_.reset(new DataSourceReader(pool, new TranscoderDataSource(transcoder_, storageAreaReader_))); transcoderReader_->SetMetricsConfiguration( DataSourceReader::MetricsConfiguration(metricsRegistry_, METRICS_TRANSCODER_CACHE_SIZE_MB, diff -r 12125996722c -r 276aa95f145a OrthancServer/Sources/ServerContext.h --- a/OrthancServer/Sources/ServerContext.h Mon Jun 01 17:01:26 2026 +0200 +++ b/OrthancServer/Sources/ServerContext.h Mon Jun 01 17:04:06 2026 +0200 @@ -49,7 +49,6 @@ class ServerTranscoder; class SharedArchive; class StorageCommitmentReports; - class ThreadPool; /** @@ -291,7 +290,6 @@ // For streaming boost::shared_ptr storageAreaReader_; boost::shared_ptr dicomReader_; - boost::shared_ptr transcoderThreadPool_; boost::shared_ptr transcoderReader_; boost::shared_ptr dicomSequentialReaderFactory_;