Skip to content
Snippets Groups Projects
Commit 9b22b69b authored by Thomas Juerges's avatar Thomas Juerges
Browse files

L2SS-245: add setting of the polling thread pool size

parent e6e4a685
Branches
Tags
1 merge request!96L2SS-245: "Investigation monitoring load"
...@@ -16,7 +16,7 @@ sys.path.append(parentdir) ...@@ -16,7 +16,7 @@ sys.path.append(parentdir)
import logging import logging
import numpy import numpy
from tango import DevState from tango import DevState, Util
from tango.server import run, Device, attribute from tango.server import run, Device, attribute
from numpy import random from numpy import random
from time import time from time import time
...@@ -58,6 +58,12 @@ class Monitoring_Performance_Device(Device): ...@@ -58,6 +58,12 @@ class Monitoring_Performance_Device(Device):
def init_device(self): def init_device(self):
Device.init_device(self) Device.init_device(self)
util = tango.Util.instance()
logger.info("Current polling thread pool size = {}".format(util.get_polling_threads_pool_size()))
util.get_polling_threads_pool_size(100)
logger.info("New polling thread pool size = {}".format(util.get_polling_threads_pool_size()))
self.set_state(DevState.OFF) self.set_state(DevState.OFF)
self.small_array_r.set_data_ready_event(True) self.small_array_r.set_data_ready_event(True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment