projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.9.13.22:
[sbcl.git]
/
src
/
code
/
thread.lisp
diff --git
a/src/code/thread.lisp
b/src/code/thread.lisp
index
378fb4b
..
37e89ac
100644
(file)
--- a/
src/code/thread.lisp
+++ b/
src/code/thread.lisp
@@
-15,7
+15,9
@@
#!+sb-doc
"Mutex type."
(name nil :type (or null simple-string))
#!+sb-doc
"Mutex type."
(name nil :type (or null simple-string))
- (value nil))
+ (value nil)
+ #!+(and sb-lutex sb-thread)
+ (lutex (make-lutex)))
(def!struct spinlock
#!+sb-doc
(def!struct spinlock
#!+sb-doc
@@
-34,6
+36,7
@@
and the mutex is in use, sleep until it is available"
(with-unique-names (got mutex1)
`(let ((,mutex1 ,mutex)
,got)
(with-unique-names (got mutex1)
`(let ((,mutex1 ,mutex)
,got)
+ (/show0 "WITH-MUTEX")
(unwind-protect
;; FIXME: async unwind in SETQ form
(when (setq ,got (get-mutex ,mutex1 ,value ,wait-p))
(unwind-protect
;; FIXME: async unwind in SETQ form
(when (setq ,got (get-mutex ,mutex1 ,value ,wait-p))