SourceForge: humaitrader/humaitrader: changeset 180:8562e9181761
create items with INIT_CAPACITY still cause deadlock under GUI
authorCaoyuan Deng <dcaoyuan@gmail.com>
Wed Nov 04 04:12:55 2009 +0800 (3 weeks ago)
changeset 1808562e9181761
parent 179760f7b6cfb0c
child 1816903d950e982
create items with INIT_CAPACITY still cause deadlock under GUI
modules/lib.math/src/org/aiotrade/lib/math/timeseries/DefaultTSer.scala
     1.1 --- a/modules/lib.math/src/org/aiotrade/lib/math/timeseries/DefaultTSer.scala	Wed Nov 04 03:55:50 2009 +0800
     1.2 +++ b/modules/lib.math/src/org/aiotrade/lib/math/timeseries/DefaultTSer.scala	Wed Nov 04 04:12:55 2009 +0800
     1.3 @@ -63,7 +63,7 @@
     1.4  
     1.5    private val INIT_CAPACITY = 400
     1.6  
     1.7 -  val items = new ArrayList[TItem](INIT_CAPACITY)// this will cause timestamps' lock deadlock?
     1.8 +  val items = new ArrayList[TItem]//(INIT_CAPACITY)// this will cause timestamps' lock deadlock?
     1.9    /**
    1.10     * Each var element of array is a Var that contains a sequence of values for one field of SerItem.
    1.11     * @Note: Don't use scala's HashSet or HashMap to store Var, these classes seems won't get all of them stored