#FEATURE by cg
authorClaus Gittinger <cg@exept.de>
Fri, 03 Jun 2016 11:50:34 +0200
changeset 4049 7cc69ea18451
parent 4048 eb9c79242508
child 4050 7df288be76d3
#FEATURE by cg class: GitSourceCodeManager added: #gitCommandSemaphore changed: #initialize
GitSourceCodeManager.st
--- a/GitSourceCodeManager.st	Fri Jun 03 11:46:39 2016 +0200
+++ b/GitSourceCodeManager.st	Fri Jun 03 11:50:34 2016 +0200
@@ -65,10 +65,17 @@
     DisabledModules := nil.
 !
 
+gitCommandSemaphore
+    GitCommandSemaphore isNil ifTrue:[
+        GitCommandSemaphore := (Semaphore new:10) name:'Concurrent GIT Commands'.    "/ at most 10 git activities concurrently
+    ].
+    ^ GitCommandSemaphore
+!
+
 initialize
     | s |
 
-    GitCommandSemaphore := (Semaphore new:10) name:'Concurrent GIT Commands'.    "/ at most 10 git activities concurrently
+    "/ GitCommandSemaphore := (Semaphore new:10) name:'Concurrent GIT Commands'.    "/ at most 10 git activities concurrently
     GitCommitOptions := ''.
     GitUpdateOptions := ''.
     DisabledModules := nil.