Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ecl
ecl
Commits
a34b6d0c
Commit
a34b6d0c
authored
Sep 18, 2018
by
Marius Gerbershagen
Browse files
threading: proctect with-rwlock against interrupts
parent
c3010094
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lsp/mp.lsp
View file @
a34b6d0c
...
...
@@ -151,10 +151,11 @@ Valid values of argument OP are :READ or :WRITE
'mp:get-rwlock-read
'mp:get-rwlock-write
)
,
s-lock
t
)
(
unwind-protect
(
progn
,@
body
)
(
,
(
if
(
eq
:read
op
)
'mp:giveup-rwlock-read
'mp:giveup-rwlock-write
)
,
s-lock
)))))
(
mp:without-interrupts
(
unwind-protect
(
mp:with-restored-interrupts
,@
body
)
(
,
(
if
(
eq
:read
op
)
'mp:giveup-rwlock-read
'mp:giveup-rwlock-write
)
,
s-lock
))))))
Write
Preview
Markdown
is supported
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