Skip to content
New issue

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

Wait for thread completion only if interrupted flag set #1843

Merged
merged 3 commits into from
May 21, 2020

Conversation

spericas
Copy link
Member

Wait for thread completion only if interrupted flag set. This is to accomodate a spec requirement that threads executing busy loops need to be waited for after interruption. The code for that was there but was also running for threads not in a busy loop, such as those waiting on I/O. The condition to execute this code has been strengthen. Should fix #1783.

…et and it is still running. Some new tests.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
…et and it is still running. Some new tests.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas spericas added this to the 2.0.0 milestone May 21, 2020
@spericas spericas requested a review from tjquinno May 21, 2020 12:41
@spericas spericas self-assigned this May 21, 2020
@spericas spericas added this to Normal priority in Backlog May 21, 2020
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas spericas merged commit 1da6b23 into helidon-io:master May 21, 2020
Backlog automation moved this from Normal priority to Closed May 21, 2020
spericas added a commit to spericas/helidon that referenced this pull request May 21, 2020
)

* Wait for a thread to complete only if its interrupted flag has been set and it is still running. Some new tests.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Updated copyright header.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
spericas added a commit that referenced this pull request May 21, 2020
* Wait for thread completion only if interrupted flag set (#1843)

* Wait for a thread to complete only if its interrupted flag has been set and it is still running. Some new tests.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Updated copyright header.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Updated copyright header.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Backlog
  
Closed
Development

Successfully merging this pull request may close these issues.

MP Fault tolerance @Timeout doesn't work with MP Rest Client
2 participants