Created
October 20, 2017 16:13
-
-
Save namchuai/9a7f1250dcbe820d3baa5621cd956d98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MySignal { | |
protected boolean hasDataToProcess = false; | |
public synchronized boolean hasDataToProcess() { | |
return this.hasDataToProcess; | |
} | |
public synchronized void setHasDataToProcess(boolean hasData) { | |
this.hasDataToProcess = hasData; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment