From c99322a6a9e48db070e50807f01c9467b30eda98 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 4 May 2021 15:32:43 -0400 Subject: sync: switch to multiprocessing.Event We've switched most of this command over to multiprocessing and off of _threading, so do the Event object too. The APIs are the same between the modules, so we shouldn't need to update anything else. Change-Id: I52d31f1c6ef2bcbe7bbc1dd1add79a8d5d08784a Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/305147 Reviewed-by: Raman Tenneti Tested-by: Mike Frysinger --- subcmds/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subcmds/sync.py') diff --git a/subcmds/sync.py b/subcmds/sync.py index 9a09be65..b50fd94d 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -850,7 +850,7 @@ later is required to fix a server side protocol bug. print('error: failed to remove existing smart sync override manifest: %s' % e, file=sys.stderr) - err_event = _threading.Event() + err_event = multiprocessing.Event() rp = self.manifest.repoProject rp.PreSync() -- cgit v1.2.3-54-g00ecf