Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zach Beane
zacl
Commits
0e9a5755
Commit
0e9a5755
authored
Dec 12, 2016
by
Zach Beane
Browse files
Fix a use-case of YIELD.
parent
63262d94
Changes
1
Hide whitespace changes
Inline
Side-by-side
portable-process.lisp
View file @
0e9a5755
...
...
@@ -179,6 +179,11 @@
(
defun
%make-process
(
&key
name
(
class
'process
)
initial-bindings
)
(
make-process
name
:class
class
:initial-bindings
initial-bindings
))
(
defmethod
yield
((
process
null
))
;; *current-process* might be nil if YIELD is not run from a
;; portable process. Don't error.
nil
)
(
defmethod
yield
((
process
process
))
(
unless
(
eq
process
*current-process*
)
(
error
"Can't yield other processes"
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment