jiangpengcheng commented on a change in pull request #3656: Adjust the 
ForcibleSemaphore mechanism 
URL: 
https://github.com/apache/incubator-openwhisk/pull/3656#discussion_r209126748
 
 

 ##########
 File path: common/scala/src/main/scala/whisk/common/ForcableSemaphore.scala
 ##########
 @@ -121,4 +139,11 @@ class ForcableSemaphore(maxAllowed: Int) {
 
   /** Returns the number of currently available permits. Possibly negative. */
   def availablePermits: Int = sync.permits
+
+  /** Set the new maxAllowed value. */
+  def setMaxAllowed(newMaxAllowed: Int): Unit = {
 
 Review comment:
   thanks! learned a lot

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to