Created
October 20, 2017 16:13
-
-
Save namchuai/339aee8f765ab910395c4f3096fc3bf1 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