basic thread analysis working
This commit is contained in:
parent
c019d17561
commit
9f9f0f0818
11 changed files with 179 additions and 44 deletions
4
todo.txt
4
todo.txt
|
|
@ -1,4 +1,7 @@
|
|||
* codegen for threadvars
|
||||
* clean up thread analysis: fix remaining XXX; thread analysis as a separate
|
||||
pass
|
||||
* implement message passing built-ins
|
||||
|
||||
* add --deadlock_prevention:on|off switch? timeout for locks?
|
||||
* test the sort implementation again
|
||||
|
|
@ -37,7 +40,6 @@ Bugs
|
|||
for i in 0 .. high(t.data)-1:
|
||||
var maxIdx = i
|
||||
for j in i+1 .. high(t.data):
|
||||
if t.data[j].val == 3: echo "touched! ", t.data[j].key
|
||||
if t.data[j].val > t.data[maxIdx].val: maxIdx = j
|
||||
swap(t.data[maxIdx], t.data[i])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue