We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
queue.take() will hang forever and block thread2.join and thread3.join later. You can use queue.poll(timeout, unit) instead.
@@ -255,9 +258,9 @@ public class TSBM { break; } try {
String data = queue.take();
String data = queue.poll(100, TimeUnit.MILLISECONDS); if (data == null) {
Thread.sleep(100);
//Thread.sleep(100); continue; } adapter.insertData(data);
@@ -265,6 +268,7 @@ public class TSBM { e.printStackTrace(); }
The text was updated successfully, but these errors were encountered:
Thanks, you can fork this, then make a PR.
Sorry, something went wrong.
ylin30
No branches or pull requests
queue.take() will hang forever and block thread2.join and thread3.join later. You can use queue.poll(timeout, unit) instead.
@@ -255,9 +258,9 @@ public class TSBM {
break;
}
try {
@@ -265,6 +268,7 @@ public class TSBM {
e.printStackTrace();
}
The text was updated successfully, but these errors were encountered: