diff --git a/core/base/inc/Rtypes.h b/core/base/inc/Rtypes.h index dff50ecadc01b..ed7b386c249c8 100644 --- a/core/base/inc/Rtypes.h +++ b/core/base/inc/Rtypes.h @@ -60,7 +60,7 @@ enum ESysConstants { kMAXSIGNALS = 16, kMAXPATHLEN = 8192, kBUFFERSIZE = 8192, - kItimerResolution = 10 // interval-timer resolution in ms + kItimerResolution = 5 ///< interval-timer resolution in ms (used for TThread, TTimer, Emit, Connect, etc.) }; enum EColor { kWhite =0, kBlack =1, kGray =920, diff --git a/core/base/inc/TTimer.h b/core/base/inc/TTimer.h index 354d1c4b19aa4..fdd73ceaac4b1 100644 --- a/core/base/inc/TTimer.h +++ b/core/base/inc/TTimer.h @@ -29,7 +29,7 @@ // Timeout() signal and call connected slots. // // // // Minimum timeout interval is defined in TSystem::ESysConstants as // -// kItimerResolution (currently 10 ms). // +// kItimerResolution (currently 5 ms). // // // // Signal/slots example: // // TTimer *timer = new TTimer(); // diff --git a/core/base/src/TTimer.cxx b/core/base/src/TTimer.cxx index f883d38314ded..c82cdacd03989 100644 --- a/core/base/src/TTimer.cxx +++ b/core/base/src/TTimer.cxx @@ -28,8 +28,8 @@ You can use this class in one of the following ways: appropriate methods. Then when the time is up it will emit a Timeout() signal and call connected slots. -Minimum timeout interval is defined in TSystem::ESysConstants as -`kItimerResolution` (currently 10 ms). +Minimum timeout interval is defined in Rtypes.h ESysConstants as +`kItimerResolution` (currently 5 ms). Signal/slots example: ~~~{.cpp} @@ -54,7 +54,7 @@ class TSingleShotCleaner : public TTimer { private: TList *fGarbage; public: - TSingleShotCleaner() : TTimer(10, kTRUE) { fGarbage = new TList(); } + TSingleShotCleaner() : TTimer(5, kTRUE) { fGarbage = new TList(); } ~TSingleShotCleaner() override { fGarbage->Delete(); @@ -81,7 +81,7 @@ class TSingleShotCleaner : public TTimer { //////////////////////////////////////////////////////////////////////////////// /// Create timer that times out in ms milliseconds. If milliSec is 0 /// then the timeout will be the minimum timeout (see TSystem::ESysConstants, -/// i.e. 10 ms). If mode == kTRUE then the timer is synchronous else +/// i.e. 5 ms). If mode == kTRUE then the timer is synchronous else /// a-synchronous. The default is synchronous. Add a timer to the system /// eventloop by calling TurnOn(). Set command to be executed from Notify() /// or set the object whose HandleTimer() method will be called via Notify(), diff --git a/core/thread/inc/TThread.h b/core/thread/inc/TThread.h index da08e533fc52d..df763bd6c27ef 100644 --- a/core/thread/inc/TThread.h +++ b/core/thread/inc/TThread.h @@ -202,10 +202,10 @@ class TThreadCleaner { class TThreadTimer : public TTimer { public: - // if this time is less or equal to kItimerResolution, TUnixSystem::DispatchOneEvent i + // if this time is less or equal to kItimerResolution, TUnixSystem::DispatchOneEvent // can not exit and have its caller react to the other TTimer's actions (like the request // to stop the event loop) until there is another type of event. - TThreadTimer(Long_t ms = kItimerResolution + 10); + TThreadTimer(Long_t ms = kItimerResolution + 5); Bool_t Notify() override; };