X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fcross-thread.lisp;h=743357a66fd26a0ee1fd5dc2148b1bc340e5b0ce;hb=55c7345f18c442abbbe46c66b51bcab612cae65f;hp=1c635650f58545c486b53a1fc41b03e801ace9e3;hpb=ec066d84dd46611428943d152749b3891a3f4b7c;p=sbcl.git diff --git a/src/code/cross-thread.lisp b/src/code/cross-thread.lisp index 1c63565..743357a 100644 --- a/src/code/cross-thread.lisp +++ b/src/code/cross-thread.lisp @@ -15,6 +15,9 @@ (declare (ignore name value)) nil) +#!+(and sb-lutex sb-thread) +(defun make-lutex () nil) + (defmacro with-mutex ((mutex) &body body) (declare (ignore mutex)) `(locally ,@body)) @@ -23,5 +26,18 @@ (declare (ignore mutex)) `(locally ,@body)) +(defun make-spinlock (&key name value) + (declare (ignore name value)) + nil) + +(defun get-spinlock (spinlock) + (declare (ignore spinlock)) + t) +(defun release-spinlock (spinlock) + (declare (ignore spinlock)) + nil) +(defmacro with-spinlock ((spinlock) &body body) + (declare (ignore spinlock)) + `(locally ,@body))