Skip to content
Snippets Groups Projects
Commit d6659e62 authored by BRONES Romain's avatar BRONES Romain
Browse files

Thread the sync process

parent ef3bfad3
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ import FofbTool
import FofbTool.Operation
import FofbTool.Configuration
import logging
import multiprocessing
#----- PROTECTED REGION END -----# // DG_PY_FOFBTool.additionnal_import
......@@ -306,9 +307,10 @@ class DG_PY_FOFBTool(Device):
tlocal = [n.split(':')[2] for n in db.get_property("FOFB", 'TimingBoardList')['TimingBoardList'] if "LOCAL" in n]
lbpevrx = db.get_property("FOFB", 'LBPEVRX')['LBPEVRX']
# This will timeout
FofbTool.Operation.sync_bpm(bpmidlist, lbpevrx, tlocal, self.tangopath_centraltiming)
P = multiprocessing.Process(target=FofbTool.Operation.sync_bpm,
args=(bpmidlist, lbpevrx, tlocal, self.tangopath_centraltiming))
P.start()
# PROTECTED REGION END # // DG_PY_FOFBTool.sync
# ----------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment