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
LimaGroup
Lima-camera-frelon
Commits
21abf1df
Commit
21abf1df
authored
Mar 13, 2014
by
Alejandro Homs Puron
Browse files
* Using GLDisplay.GLForkCallback interface for fork cleanup
parent
1b0c5258
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_frelon_lima_gldisplay.py
View file @
21abf1df
...
...
@@ -6,12 +6,15 @@ from Lima import Core, GLDisplay, Frelon
acq
=
Frelon
.
FrelonAcq
(
0
)
ct_control
=
acq
.
getGlobalControl
()
def
frelon_cleanup
():
global
acq
del
acq
class
FrelonCleanup
(
GLDisplay
.
GLForkCallback
):
def
execInForked
(
self
):
global
acq
del
acq
frelon_cleanup
=
FrelonCleanup
()
gldisplay
=
GLDisplay
.
CtSPSGLDisplay
(
ct_control
,
[])
gldisplay
.
set
ForkC
leanup
(
frelon_cleanup
)
gldisplay
.
add
ForkC
allback
(
frelon_cleanup
)
gldisplay
.
setSpecArray
(
'GLDisplayTest'
,
'Frelon'
)
gldisplay
.
createWindow
()
signal
.
signal
(
signal
.
SIGCHLD
,
signal
.
SIG_IGN
)
...
...
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