diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-04-23 14:51:20 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-04-23 14:51:20 -0700 |
commit | 991d76f32817f5515fb8db25a7d5ca2912cfe4ac (patch) | |
tree | c6b719df15532d4d5b91feae1f927f2be8a7dc9e /072channel.mu | |
parent | 538815670a8747e68dd95cd43e0ac1fce184f781 (diff) | |
download | mu-991d76f32817f5515fb8db25a7d5ca2912cfe4ac.tar.gz |
2860 - rename 'index-address' to 'put-index'
Diffstat (limited to '072channel.mu')
-rw-r--r-- | 072channel.mu | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/072channel.mu b/072channel.mu index 81bc1479..0847f2ce 100644 --- a/072channel.mu +++ b/072channel.mu @@ -71,8 +71,7 @@ def write out:address:shared:sink:_elem, val:_elem -> out:address:shared:sink:_e # store val circular-buffer:address:shared:array:_elem <- get *chan, data:offset free:number <- get *chan, first-free:offset - dest:address:_elem <- index-address *circular-buffer, free - *dest <- copy val + *circular-buffer <- put-index *circular-buffer, free, val # mark its slot as filled # todo: clear the slot itself free <- add free, 1 |