1.0.19.7: refactor stack allocation decisions
[sbcl/pkhuong.git] / src / code / cross-thread.lisp
blob461f02dab1ca1864ff9d1b53b05ff728e1236357
1 ;;;; cross-compile-time-only replacements for threading stuff
3 ;;;; This software is part of the SBCL system. See the README file for
4 ;;;; more information.
5 ;;;;
6 ;;;; This software is derived from the CMU CL system, which was
7 ;;;; written at Carnegie Mellon University and released into the
8 ;;;; public domain. The software is in the public domain and is
9 ;;;; provided with absolutely no warranty. See the COPYING and CREDITS
10 ;;;; files for more information.
12 (in-package "SB!THREAD")
14 (defun make-mutex (&key name value)
15 (declare (ignore name value))
16 nil)
18 (defmacro with-mutex ((mutex) &body body)
19 (declare (ignore mutex))
20 `(locally ,@body))
22 (defmacro with-recursive-lock ((mutex) &body body)
23 (declare (ignore mutex))
24 `(locally ,@body))
26 (defun make-spinlock (&key name value)
27 (declare (ignore name value))
28 nil)
30 (defun get-spinlock (spinlock)
31 (declare (ignore spinlock))
34 (defun release-spinlock (spinlock)
35 (declare (ignore spinlock))
36 nil)
38 (defmacro with-spinlock ((spinlock) &body body)
39 (declare (ignore spinlock))
40 `(locally ,@body))