Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1072 from urbit/philip/flop-ames-timers
Browse files Browse the repository at this point in the history
add |bonk and flop ames timer order
  • Loading branch information
philipcmonk authored Feb 16, 2019
2 parents b50928a + 3e29612 commit 09995cd
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/hood.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
++ poke-helm-tlon-init-stream (wrap poke-tlon-init-stream):from-helm
++ poke-helm-automass (wrap poke-automass):from-helm
++ poke-helm-cancel-automass (wrap poke-cancel-automass):from-helm
++ poke-helm-bonk (wrap poke-bonk):from-helm
++ poke-hood-sync (wrap poke-sync):from-kiln
++ poke-kiln-commit (wrap poke-commit):from-kiln
++ poke-kiln-info (wrap poke-info):from-kiln
Expand Down
7 changes: 7 additions & 0 deletions gen/hood/bonk.hoon
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
:: Helm: bonk ames
::
:::: /hoon/bonk/hood/gen
::
/? 310
:- %say
|=({^ ~ ~} helm-bonk+~)
9 changes: 8 additions & 1 deletion lib/hood/helm.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
=+ sez=(fall (~(get by hoc) ost) $:session)
=> |% :: arvo structures
++ card ::
$% {$conf wire dock $load ship term} ::
$% [%bonk wire ~] ::
{$conf wire dock $load ship term} ::
{$flog wire flog:dill} ::
[%mint wire our=ship p=ship q=safe:rights:jael]
{$nuke wire ship} ::
Expand Down Expand Up @@ -106,6 +107,12 @@
|= ~
abet:(emit %rest way.mass-timer.sez nex.mass-timer.sez)
::
++ poke-bonk
|= ~
~& .^((unit @da) %a /(scot %p our)/time/(scot %da now)/(scot %p our))
%- %- slog :_ ~ .^(tank %b /(scot %p our)/timers/(scot %da now))
abet:(emit %bonk /bonk ~)
::
++ take-wake-automass
|= [way=wire ~]
=. nex.mass-timer.sez (add now tim.mass-timer.sez)
Expand Down
13 changes: 13 additions & 0 deletions sys/vane/ames.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,8 @@
::
%pito
:_ fox(tim `p.bon)
%- flop
^- (list move)
:- [gad.fox %pass /ames %b %wait p.bon]
?~ tim.fox ~
[gad.fox %pass /ames %b %rest u.tim.fox]~
Expand Down Expand Up @@ -1461,6 +1463,13 @@
%barn
:_ fox(gad hen)
[%bock ~]~
::
%bonk
:_ fox
?~ tim.fox
~& %ames-bonk-e
~
[%pito u.tim.fox]~
::
%hear
(~(gnaw am [our now fox ski]) %good p.kyz q.kyz)
Expand Down Expand Up @@ -1543,6 +1552,10 @@
?. =(our his)
~
``[%noun !>(pals:~(um am [our now fox ski]))]
?: ?=([%time ~] tyl)
?. =(our his)
~
``[%noun !>(tim.fox)]
~
::
++ wegh
Expand Down
1 change: 1 addition & 0 deletions sys/vane/gall.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -1258,6 +1258,7 @@
^- (unit @tas)
?+ sep ~& [%ap-vain sep]
~
$bonk `%a
$build `%f
$cash `%a
$conf `%g
Expand Down
1 change: 1 addition & 0 deletions sys/zuse.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@
== == == ::
++ task :: in request ->$
$% {$barn ~} :: new unix process
{$bonk ~} :: reset the timer
{$crud p/@tas q/(list tank)} :: error with trace
{$hear p/lane q/@} :: receive packet
{$halo p/lane q/@ r/ares} :: hole with trace
Expand Down

0 comments on commit 09995cd

Please sign in to comment.