50 : indices_(other.indices_)
104 UInt32 spinBeforeIdleTime_;
116 , spinBeforeIdleTime_(1)
138 return threadAffinity_;
150 return threadAffinity_;
167 threadCount_ = value;
203 return dataWaitTime_;
211 dataWaitTime_ = value;
225 return spinBeforeIdleTime_;
233 spinBeforeIdleTime_ = value;
242 return socketBufferSize_;
250 socketBufferSize_ = value;
255 ONIXS_CMEMDH_EXPORTED
269 toStr(str, settings);
362 MultithreadedFeedEngine
373 MultithreadedFeedEngine
376 MultithreadedFeedEngine* engine_;
UInt32 threadCount() const
#define ONIXS_CMEMDH_LTWT_CLASS
void socketBufferSize(UInt32 value)
Sets udpSocketBufferSize.
virtual void onFeedEngineThreadIdle(const FeedEngine &, FeedEngineThreadIdle::Reason, UInt32 &)
ThreadAffinity(const ThreadAffinity &other)
Initializes as copy of other set.
virtual void onFeedEngineThreadBegin(const FeedEngine &)
const CpuIndices & cpus() const
Read-only access to index collection.
WatchService & watch() const
const ThreadAffinity & threadAffinity() const
Int32 CpuIndex
Zero-based index of CPU.
ThreadAffinity & threadAffinity()
virtual void onFeedEngineThreadEnd(const FeedEngine &)
#define ONIXS_CMEMDH_EXPORTED_CLASS_DECL(typeName)
Represents set of CPU indices.
ThreadAffinity()
Initializes empty set.
char Char
Character type alias.
UInt32 dataWaitTime() const
Collection of settings affecting Feed Engine behavior.
void watch(WatchService &watch)
#define ONIXS_CMEMDH_EXPORTED_CLASS
void threadCount(UInt32 value)
Sets threadsCount.
void dataWaitTime(UInt32 value)
Sets dataWaitTime.
#define ONIXS_CMEMDH_LTWT_STRUCT
FeedEngineSettings()
Initializes options with default values.
virtual void onFeedEngineThreadIssue(const FeedEngine &, const Char *)
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
CpuIndices & cpus()
Collection of CPU indices.
UInt32 spinBeforeIdleTime() const
void spinBeforeIdleTime(UInt32 value)
Sets redundancySpinTime.
std::string toStr(const FeedEngineSettings &settings)
Serializes feed engine settings into a string.
#define ONIXS_CMEMDH_INTERNAL_CLASS_DECL(typeName)
Identifies reasons feed engine threads becomes idle.
#define ONIXS_CMEMDH_EXPORTED_STRUCT
~FeedEngineSettings()
Cleans everything up.
Manages processing machinery for market data received from feeds.
~ThreadAffinity()
Utilizes all the resources.
TinySet< CpuIndex > CpuIndices
Alias for collection of CPU indices.
UInt32 socketBufferSize() const
#define ONIXS_CMEMDH_NAMESPACE_END