Mercurial > hg > Members > tatsuki > Alice
changeset 306:098e97954c08
add comment
author | sugi |
---|---|
date | Tue, 19 Nov 2013 15:29:06 +0900 |
parents | 72739519cc39 |
children | 52bb813ed52e |
files | src/alice/topology/manager/keeparive/PingSchedList.java |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alice/topology/manager/keeparive/PingSchedList.java Tue Nov 19 15:25:45 2013 +0900 +++ b/src/alice/topology/manager/keeparive/PingSchedList.java Tue Nov 19 15:29:06 2013 +0900 @@ -3,13 +3,17 @@ import java.util.LinkedList; public class PingSchedList { + /* TODO + * This LinkedList may be called some threads. + * So need lock. + */ private LinkedList<TaskInfo> list = new LinkedList<TaskInfo>(); public LinkedList<TaskInfo> getTaskList(){ return list; } - public synchronized void addTask(TaskInfo newInfo){ + public void addTask(TaskInfo newInfo){ if (list.isEmpty()) { list.add(newInfo); } else {