File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -38,20 +38,26 @@ redef class Array
3838 var mutex = new Mutex
3939
4040 redef fun add (e )
41+ is
42+ no_contract
4143 do
4244 mutex .lock
4345 super
4446 mutex .unlock
4547 end
4648
4749 redef fun []=(index , e )
50+ is
51+ no_contract
4852 do
4953 mutex .lock
5054 super
5155 mutex .unlock
5256 end
5357
5458 redef fun [](index )
59+ is
60+ no_contract
5561 do
5662 mutex .lock
5763 var r = super
@@ -60,13 +66,17 @@ redef class Array
6066 end
6167
6268 redef fun remove_at (index )
69+ is
70+ no_contract
6371 do
6472 mutex .lock
6573 super
6674 mutex .unlock
6775 end
6876
6977 redef fun shift
78+ is
79+ no_contract
7080 do
7181 mutex .lock
7282 var r = super
@@ -75,27 +85,35 @@ redef class Array
7585 end
7686
7787 redef fun unshift (e )
88+ is
89+ no_contract
7890 do
7991 mutex .lock
8092 super
8193 mutex .unlock
8294 end
8395
8496 redef fun insert_all (from , pos )
97+ is
98+ no_contract
8599 do
86100 mutex .lock
87101 super
88102 mutex .unlock
89103 end
90104
91105 redef fun swap_at (a , b )
106+ is
107+ no_contract
92108 do
93109 mutex .lock
94110 super
95111 mutex .unlock
96112 end
97113
98114 redef fun ==(o )
115+ is
116+ no_contract
99117 do
100118 mutex .lock
101119 var r = super
@@ -104,6 +122,8 @@ redef class Array
104122 end
105123
106124 redef fun enlarge (cap )
125+ is
126+ no_contract
107127 do
108128 mutex .lock
109129 super
You can’t perform that action at this time.
0 commit comments