Skip to content

Commit 03f2f55

Browse files
authored
Merge pull request #1689 from carolFrohlich/master
fix semaphore acquire bug
2 parents f5e3cab + 1e63720 commit 03f2f55

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)