Mercurial > hg > Database > Alice
comparison src/alice/codesegment/CodeSegmentManager.java @ 57:7fa9ddb31f64
add comment
author | one |
---|---|
date | Wed, 08 Feb 2012 16:07:33 +0900 |
parents | 73158dc54c59 |
children | ebdcab7b9b04 |
comparison
equal
deleted
inserted
replaced
56:17f88fd202ae | 57:7fa9ddb31f64 |
---|---|
41 } | 41 } |
42 | 42 |
43 public static CodeSegmentManager get() { | 43 public static CodeSegmentManager get() { |
44 return instance; | 44 return instance; |
45 } | 45 } |
46 | |
47 public static void submit(CodeSegment cs) { | |
48 try { | |
49 CodeSegmentManager.get().readyQueue.put(cs); | |
50 } catch (InterruptedException e) { | |
51 e.printStackTrace(); | |
52 } | |
53 } | |
46 | 54 |
47 } | 55 } |