Mercurial > hg > orthanc
changeset 7178:67a629f02859
reduce granularity if the runnable must be executed faster
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Wed, 21 Oct 2026 15:17:19 +0200 |
| parents | e4bf724a5886 |
| children | 3e12d85063ee |
| files | OrthancFramework/Sources/MultiThreading/PeriodicRunnableThread.cpp |
| diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/Sources/MultiThreading/PeriodicRunnableThread.cpp Wed Oct 21 15:11:24 2026 +0200 +++ b/OrthancFramework/Sources/MultiThreading/PeriodicRunnableThread.cpp Wed Oct 21 15:17:19 2026 +0200 @@ -102,6 +102,12 @@ { throw OrthancException(ErrorCode_NullPointer); } + + // Reduce the default granularity if the runnable must be executed faster + if (delay_ < timeResolution_) + { + timeResolution_ = delay_; + } }
