Skip to content

Commit

Permalink
[Java] thread field should be volatile.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpt777 committed Dec 7, 2019
1 parent d026d72 commit 69ef4ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
public class HighResolutionTimer
{
private static Thread thread;
private static volatile Thread thread;

/**
* Has the high resolution timer been enabled?
Expand Down

0 comments on commit 69ef4ba

Please sign in to comment.