Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Associate macrovertices with the dryad of the source root #47

Merged
merged 3 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/operations/contract.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ PETAL-CHILD-EDGES: The list of child edges attached to the blossoms in the subtr
(let* ((supervisor-frame (peek (process-data-stack supervisor)))
(fresh-blossom (spawn-process (supervisor-node-class supervisor)
:id (gensym "BLOSSOM")
:dryad (supervisor-node-dryad supervisor)
;; prevent SCANs
:paused? t
:debug? (process-debug? supervisor))))
Expand Down
1 change: 1 addition & 0 deletions src/operations/scan.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ NOTE: this command is only installed when NODE is a vertex."
`(SCAN-LOOP nil)))
(let ((supervisor (make-supervisor node
:node-class (type-of node)
:node-dryad (blossom-node-dryad node)
:debug? (process-debug? node))))
(log-entry :entry-type 'spawn-supervisor
:pong pong
Expand Down
8 changes: 7 additions & 1 deletion src/supervisor.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@
:accessor supervisor-node-class
:initform 'blossom-node
:initarg :node-class
:type symbol))
:type symbol)
(node-dryad
:accessor supervisor-node-dryad
:initform nil
karalekas marked this conversation as resolved.
Show resolved Hide resolved
:initarg :node-dryad
:type (or null address)
:documentation "The address of the host `DRYAD' for the node that spawned us."))
(:documentation "A companion process responsible for coordinating a tree operation."))

(define-message-dispatch supervisor
Expand Down
Loading