From 6ee2f7a2844790fc92f69449bbc5c6351fac5409 Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Wed, 16 Aug 2017 22:51:44 +0000 Subject: [PATCH] First cut at executor cfg. --- src/lib/CMakeLists.txt | 1 + src/lib/config/protos/Executor.proto | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 src/lib/config/protos/Executor.proto diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index 399cf8f67..c36841ad6 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -11,6 +11,7 @@ set (Config_Protos config/protos/MarketData.proto config/protos/Symbols.proto config/protos/Ports.proto + config/protos/Executor.proto ) # non config/non service protos diff --git a/src/lib/config/protos/Executor.proto b/src/lib/config/protos/Executor.proto new file mode 100644 index 000000000..538b62f65 --- /dev/null +++ b/src/lib/config/protos/Executor.proto @@ -0,0 +1,13 @@ + +syntax='proto2'; +package bts.config; + +message Executor { + optional int32 affinity = 1 [default = -1]; + optional bool yield_cpu = 2 [default = true]; + repeated string actor = 3; +} + +message ExecutorCfg { + repeated Executor executor = 1; +} \ No newline at end of file