Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
eager-future2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vladimir Sedach
eager-future2
Commits
c8548a94
Commit
c8548a94
authored
13 years ago
by
Samuel Edwin Ward
Browse files
Options
Downloads
Patches
Plain Diff
Bug fix: FORCE no longer tries to stop computation if it has not started
parent
298c7c47
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
future.lisp
+1
-1
1 addition, 1 deletion
future.lisp
test/test.lisp
+6
-0
6 additions, 0 deletions
test/test.lisp
with
7 additions
and
1 deletion
future.lisp
+
1
−
1
View file @
c8548a94
...
...
@@ -31,7 +31,7 @@ computation of the future)."
(
return-from
force
nil
)
(
setf
(
%values
future
)
values
)))
(
with-slots
(
computing-thread
)
future
(
unless
(
eq
computing-thread
(
current-thread
))
(
unless
(
or
(
null
computing-thread
)
(
eq
computing-thread
(
current-thread
))
)
(
abort-scheduled-future-task
computing-thread
(
future-id
future
)))
(
dolist
(
x
(
wait-list
future
))
(
with-lock-held
((
car
x
))
...
...
This diff is collapsed.
Click to expand it.
test/test.lisp
+
6
−
0
View file @
c8548a94
...
...
@@ -75,6 +75,12 @@
(
sleep
0.2
)
(
and
flag
(
yield
foo
))))))
(
test
force-unstarted
(
is
(
=
1
(
let
((
future
(
pcall
(
constantly
5
)
:lazy
)))
(
force
future
1
)
(
yield
future
)))))
(
test
gc-future
(
is
(
=
1
(
let
((
foo
1
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment