Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SAT4J
sat4j
Commits
c7e21270
Commit
c7e21270
authored
Sep 25, 2018
by
Daniel Le Berre
Browse files
synchronizing both access to the timer object. Thanks Romain.
parent
b430d191
Pipeline
#2949
passed with stages
in 40 minutes and 43 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
org.sat4j.core/src/main/java/org/sat4j/minisat/core/Solver.java
View file @
c7e21270
...
...
@@ -1830,10 +1830,14 @@ public class Solver<D extends DataStructureFactory>
cancelUntil
(
0
);
cancelLearntLiterals
(
learnedLiteralsLimit
);
if
(!
global
&&
this
.
timeBasedTimeout
&&
this
.
timer
!=
null
)
{
if
(!
global
&&
this
.
timeBasedTimeout
)
{
synchronized
(
this
)
{
if
(
this
.
timer
!=
null
)
{
this
.
timer
.
cancel
();
this
.
timer
=
null
;
}
}
}
this
.
slistener
.
end
(
status
);
if
(!
this
.
undertimeout
)
{
String
message
=
" Timeout ("
+
this
.
timeout
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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