@@ -78,7 +78,7 @@ PETAL-CHILD-EDGES: The list of child edges attached to the blossoms in the subtr
78
78
; ;; supervisor command definitions
79
79
; ;;
80
80
81
- (define-process-upkeep ((supervisor supervisor) now ) (START-CONTRACT pong)
81
+ (define-process-upkeep ((supervisor supervisor)) (START-CONTRACT pong)
82
82
" Begins the CONTRACT routine, sets up the stack frames."
83
83
(with-slots (source-root) pong
84
84
(let ((targets (list source-root)))
@@ -93,7 +93,7 @@ PETAL-CHILD-EDGES: The list of child edges attached to the blossoms in the subtr
93
93
` (BROADCAST-UNLOCK)
94
94
` (HALT)))))
95
95
96
- (define-process-upkeep ((supervisor supervisor) now ) (START-INNER-CONTRACT)
96
+ (define-process-upkeep ((supervisor supervisor)) (START-INNER-CONTRACT)
97
97
" Begins the critical section of the CONTRACT routine."
98
98
(unless (process-lockable-aborting? supervisor)
99
99
(let* ((supervisor-frame (peek (process-data-stack supervisor)))
@@ -102,7 +102,7 @@ PETAL-CHILD-EDGES: The list of child edges attached to the blossoms in the subtr
102
102
; ; prevent SCANs
103
103
:paused? t
104
104
:debug? (process-debug? supervisor))))
105
- (schedule fresh-blossom now)
105
+ (schedule fresh-blossom ( now) )
106
106
(log-entry :entry-type ' spawned-fresh-blossom
107
107
:fresh-blossom fresh-blossom)
108
108
(push (make-data-frame-contract
@@ -120,20 +120,20 @@ PETAL-CHILD-EDGES: The list of child edges attached to the blossoms in the subtr
120
120
` (BROADCAST-UNLOCK) ; NOTE: double-calling BROADCAST-UNLOCK makes
121
121
` (RELEASE-STOWED-LOCK))))) ; the second one a NOP.
122
122
123
- (define-process-upkeep ((supervisor supervisor) now ) (STOW-LOCK)
123
+ (define-process-upkeep ((supervisor supervisor)) (STOW-LOCK)
124
124
(with-slots (downward-rx-latches downward-tx-latches) supervisor
125
125
(with-slots (stowed-rx-latch stowed-tx-latch) (peek (process-data-stack supervisor))
126
126
(setf stowed-rx-latch (pop downward-rx-latches)
127
127
stowed-tx-latch (pop downward-tx-latches)))))
128
128
129
- (define-process-upkeep ((supervisor supervisor) now ) (RELEASE-STOWED-LOCK)
129
+ (define-process-upkeep ((supervisor supervisor)) (RELEASE-STOWED-LOCK)
130
130
(with-slots (downward-rx-latches downward-tx-latches) supervisor
131
131
(with-slots (stowed-rx-latch stowed-tx-latch) (pop (process-data-stack supervisor))
132
132
(push stowed-rx-latch downward-rx-latches)
133
133
(push stowed-tx-latch downward-tx-latches)
134
134
(process-continuation supervisor ` (BROADCAST-UNLOCK)))))
135
135
136
- (define-process-upkeep ((supervisor supervisor) now ) (COMPUTE-BLOSSOM-PATHS)
136
+ (define-process-upkeep ((supervisor supervisor)) (COMPUTE-BLOSSOM-PATHS)
137
137
" This command computes the cycle which will constitute the fresh blossom.
138
138
139
139
G <-- root --> G
@@ -211,7 +211,7 @@ Both above tree diagrams are valid arrangments that would trigger this operation
211
211
(list (copy-blossom-edge edge))
212
212
(reverse-blossom-edges recipient-tail)))))))
213
213
214
- (define-process-upkeep ((supervisor supervisor) now ) (HANDLE-PISTIL)
214
+ (define-process-upkeep ((supervisor supervisor)) (HANDLE-PISTIL)
215
215
" Tell the source of the peduncle edge that the fresh blossom is its child.
216
216
217
217
G <-- root --> G
@@ -233,7 +233,7 @@ If we have a non-null peduncle edge (F -> C above), then we need to tell its sou
233
233
(attach-result (blossom-edge-source-node peduncle-edge))
234
234
nil )))))
235
235
236
- (define-process-upkeep ((supervisor supervisor) now ) (HANDLE-PETALS)
236
+ (define-process-upkeep ((supervisor supervisor)) (HANDLE-PETALS)
237
237
" Tell the blossom's petals what's up."
238
238
(with-slots (path fresh-blossom petal-child-edges) (peek (process-data-stack supervisor))
239
239
(let ((children (mapcar #' blossom-edge-target-node path)))
@@ -248,7 +248,7 @@ If we have a non-null peduncle edge (F -> C above), then we need to tell its sou
248
248
:test #' address=))
249
249
(apply #' append petal-child-edges petal-replies))))))))
250
250
251
- (define-process-upkeep ((supervisor supervisor) now ) (HANDLE-BLOSSOM-SUB-CHILDREN)
251
+ (define-process-upkeep ((supervisor supervisor)) (HANDLE-BLOSSOM-SUB-CHILDREN)
252
252
" Tell all the other children what's up."
253
253
(with-slots (fresh-blossom petal-child-edges) (peek (process-data-stack supervisor))
254
254
(let ((petal-children (mapcar #' blossom-edge-target-node petal-child-edges)))
@@ -258,7 +258,7 @@ If we have a non-null peduncle edge (F -> C above), then we need to tell its sou
258
258
(send-message-batch #' payload-constructor petal-children)
259
259
nil )))))
260
260
261
- (define-process-upkeep ((supervisor supervisor) now ) (HANDLE-NEW-BLOSSOM)
261
+ (define-process-upkeep ((supervisor supervisor)) (HANDLE-NEW-BLOSSOM)
262
262
" Tell the blossom itself what's up."
263
263
(let ((frame (peek (process-data-stack supervisor))))
264
264
(with-slots (fresh-blossom peduncle-edge path petal-child-edges) frame
@@ -310,7 +310,7 @@ If we have a non-null peduncle edge (F -> C above), then we need to tell its sou
310
310
; ;;
311
311
312
312
(define-message-handler handle-message-root-path
313
- ((node blossom-node) (message message-root-path) now )
313
+ ((node blossom-node) (message message-root-path))
314
314
" Calculates the path from a blossom through to the tree root (consisting only of toplevel blossoms)."
315
315
(with-slots (path reply-channel) message
316
316
(cond
@@ -327,7 +327,7 @@ If we have a non-null peduncle edge (F -> C above), then we need to tell its sou
327
327
(make-message-rpc-done :result path))))))
328
328
329
329
(define-rpc-handler handle-message-attach-parent
330
- ((node blossom-node) (message message-attach-parent) now )
330
+ ((node blossom-node) (message message-attach-parent))
331
331
" Attaches a fresh blossom to an existing parent."
332
332
(with-slots (peduncle-edge reply-channel fresh-blossom) message
333
333
(assert (not (null peduncle-edge)))
@@ -346,7 +346,7 @@ If we have a non-null peduncle edge (F -> C above), then we need to tell its sou
346
346
nil ))
347
347
348
348
(define-rpc-handler handle-message-convert-child-to-petal
349
- ((node blossom-node) (message message-convert-child-to-petal) now )
349
+ ((node blossom-node) (message message-convert-child-to-petal))
350
350
" Attaches an old child to a new blossom as a petal."
351
351
(with-slots (reply-channel fresh-blossom) message
352
352
(prog1 (blossom-node-children node)
@@ -357,7 +357,7 @@ If we have a non-null peduncle edge (F -> C above), then we need to tell its sou
357
357
(blossom-node-children node) nil ))))
358
358
359
359
(define-rpc-handler handle-message-reattach-cycle-child
360
- ((node blossom-node) (message message-reattach-cycle-child) now )
360
+ ((node blossom-node) (message message-reattach-cycle-child))
361
361
" Attaches an old child to a new blossom as a (non-blossom-)child."
362
362
(with-slots (reply-channel fresh-blossom) message
363
363
(setf (blossom-edge-target-node (blossom-node-parent node))
@@ -368,7 +368,7 @@ If we have a non-null peduncle edge (F -> C above), then we need to tell its sou
368
368
; ; the fresh blossom responsible for setting _itself_ up. this would also
369
369
; ; alleviate the obnoxious problem with locking/spawning timing.
370
370
(define-rpc-handler handle-message-set-up-blossom
371
- ((node blossom-node) (message message-set-up-blossom) now )
371
+ ((node blossom-node) (message message-set-up-blossom))
372
372
" Sets up a new contracting blossom's slots."
373
373
(with-slots (peduncle-edge petals petal-children dryad reply-channel) message
374
374
(loop :for petal-child :in petal-children
0 commit comments