Skip to content

Commit 1e63720

Browse files
committed
fix semaphore aquire bug
1 parent f5e3cab commit 1e63720

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

nipype/pipeline/plugins/multiproc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ def __init__(self, plugin_args=None):
160160
def _wait(self):
161161
if len(self.pending_tasks) > 0:
162162
semaphore_singleton.semaphore.acquire()
163-
semaphore_singleton.semaphore.release()
164163

165164
def _get_result(self, taskid):
166165
if taskid not in self._taskresult:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import print_function, division, unicode_literals, absolute_import
33
import threading
4-
semaphore = threading.Semaphore(1)
4+
semaphore = threading.Semaphore(0)

0 commit comments

Comments
 (0)