sanha commented on a change in pull request #11: [NEMO-42] Make SchedulerRunner 
reactive, Ensure reverse-topological ordering in scheduling
URL: https://github.com/apache/incubator-nemo/pull/11#discussion_r176906933
 
 

 ##########
 File path: 
runtime/master/src/main/java/edu/snu/nemo/runtime/master/scheduler/SchedulerRunner.java
 ##########
 @@ -116,4 +152,37 @@ public void run() {
       LOG.info("SchedulerRunner Terminated!");
     }
   }
+
+  /**
+   * A {@link Condition} primitive that 'queues' signal.
+   */
+  private final class SignalQueueingCondition {
+    private final AtomicBoolean hasQueuedSignal = new AtomicBoolean(false);
+    private final Lock lock = new ReentrantLock();
+    private final Condition condition = lock.newCondition();
+
+    public void signal() {
 
 Review comment:
   Please add comments for these methods.

----------------------------------------------------------------
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