Repository: reef Updated Branches: refs/heads/master fd05b6be8 -> f7b8e81e7
[REEF-1370] Add `IClock.Run()` JIRA: [REEF-1370](https://issues.apache.org/jira/browse/REEF-1370) Pull Request: This closes #979 Project: http://git-wip-us.apache.org/repos/asf/reef/repo Commit: http://git-wip-us.apache.org/repos/asf/reef/commit/f7b8e81e Tree: http://git-wip-us.apache.org/repos/asf/reef/tree/f7b8e81e Diff: http://git-wip-us.apache.org/repos/asf/reef/diff/f7b8e81e Branch: refs/heads/master Commit: f7b8e81e7d2f8a4ccf1c8f1869d18099907c6a3f Parents: fd05b6b Author: Markus Weimer <[email protected]> Authored: Thu Apr 28 16:34:43 2016 -0700 Committer: Mariia Mykhailova <[email protected]> Committed: Thu Apr 28 16:55:49 2016 -0700 ---------------------------------------------------------------------- lang/cs/Org.Apache.REEF.Wake/Time/IClock.cs | 8 ++++++++ lang/cs/Org.Apache.REEF.Wake/Time/Runtime/RuntimeClock.cs | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/reef/blob/f7b8e81e/lang/cs/Org.Apache.REEF.Wake/Time/IClock.cs ---------------------------------------------------------------------- diff --git a/lang/cs/Org.Apache.REEF.Wake/Time/IClock.cs b/lang/cs/Org.Apache.REEF.Wake/Time/IClock.cs index ec9c0c8..89e04c8 100644 --- a/lang/cs/Org.Apache.REEF.Wake/Time/IClock.cs +++ b/lang/cs/Org.Apache.REEF.Wake/Time/IClock.cs @@ -45,6 +45,14 @@ namespace Org.Apache.REEF.Wake.Time public abstract void Dispose(); /// <summary> + /// Start the Clock. + /// </summary> + /// <remarks> + /// The clock will continue to run and handle events until it has been disposed. + /// </remarks> + public abstract void Run(); + + /// <summary> /// Bind this to an event handler to statically subscribe to the StartTime Event /// </summary> [NamedParameter(documentation: "Will be called upon the start even", defaultClass: typeof(MissingStartHandlerHandler))] http://git-wip-us.apache.org/repos/asf/reef/blob/f7b8e81e/lang/cs/Org.Apache.REEF.Wake/Time/Runtime/RuntimeClock.cs ---------------------------------------------------------------------- diff --git a/lang/cs/Org.Apache.REEF.Wake/Time/Runtime/RuntimeClock.cs b/lang/cs/Org.Apache.REEF.Wake/Time/Runtime/RuntimeClock.cs index 3082324..eaf985f 100644 --- a/lang/cs/Org.Apache.REEF.Wake/Time/Runtime/RuntimeClock.cs +++ b/lang/cs/Org.Apache.REEF.Wake/Time/Runtime/RuntimeClock.cs @@ -150,7 +150,7 @@ namespace Org.Apache.REEF.Wake.Time.Runtime /// Start the RuntimeClock. /// Clock will continue to run and handle events until it has been disposed. /// </summary> - public void Run() + public override void Run() { SubscribeHandlers();
