ScoreList: make getValue synchronized
This commit is contained in:
parent
0dc9ec2e5f
commit
cf66587644
@ -81,7 +81,7 @@ public abstract class ScoreList implements Iterable<Score>
|
|||||||
* @param timestamp the timestamp of a day
|
* @param timestamp the timestamp of a day
|
||||||
* @return score value for that day
|
* @return score value for that day
|
||||||
*/
|
*/
|
||||||
public final int getValue(long timestamp)
|
public final synchronized int getValue(long timestamp)
|
||||||
{
|
{
|
||||||
compute(timestamp, timestamp);
|
compute(timestamp, timestamp);
|
||||||
Score s = getComputedByTimestamp(timestamp);
|
Score s = getComputedByTimestamp(timestamp);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user