Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
97f8dda8
Commit
97f8dda8
authored
8 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Hack made a bit more specific.
parent
e7ba37ec
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/utils/status.py
+16
-17
16 additions, 17 deletions
fsl/utils/status.py
with
16 additions
and
17 deletions
fsl/utils/status.py
+
16
−
17
View file @
97f8dda8
...
...
@@ -150,25 +150,24 @@ class ClearThread(threading.Thread):
(via a call to :func:`clearStatus`).
"""
# http://bugs.python.org/issue14623
#
# When the main thread exits, daemon threads will
# continue to run after the threading module is
# destroyed. Calls to the Event methods can thus
# result in errors.
try
:
while
True
:
self
.
__vetoEvent
.
clear
()
self
.
__clearEvent
.
wait
()
self
.
__clearEvent
.
clear
()
while
True
:
self
.
__vetoEvent
.
clear
()
self
.
__clearEvent
.
wait
()
self
.
__clearEvent
.
clear
()
# http://bugs.python.org/issue14623
#
# When the main thread exits, daemon threads will
# continue to run after the threading module is
# destroyed. Calls to the Event methods can thus
# result in errors.
try
:
if
not
self
.
__clearEvent
.
wait
(
self
.
__timeout
)
and
\
not
self
.
__vetoEvent
.
isSet
():
log
.
debug
(
'
Timeout - clearing status
'
)
clearStatus
()
except
:
pass
except
TypeError
:
return
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