X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=processes.lisp;h=88aa05113da3613e973a863dd318fc2d4d275be9;hp=547b862bafcf9b195c1916034af2a5a864ac49c4;hb=ea921dd2ce51a46bb3ca92a07df095d5ace99dcf;hpb=0dc565c13310ce9f59b42b4e4bdd9167e24ca756 diff --git a/processes.lisp b/processes.lisp index 547b862..88aa051 100644 --- a/processes.lisp +++ b/processes.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: June 2003 ;;;; -;;;; $Id: processes.lisp,v 1.3 2003/07/11 02:37:33 kevin Exp $ +;;;; $Id$ ;;;; ************************************************************************* (in-package #:kmrcl) @@ -32,7 +32,7 @@ #+allegro (mp:make-process-lock :name name) #+cmu (mp:make-lock name) #+lispworks (mp:make-lock :name name) - #+sbcl-thread (sb-thread:make-mutex :name name) + #+sb-thread (sb-thread:make-mutex :name name) ) (defmacro with-lock-held ((lock) &body body) @@ -42,9 +42,9 @@ `(mp:with-lock-held (,lock) ,@body) #+lispworks `(mp:with-lock (,lock) ,@body) - #+sbcl-thread - `(sb-thread:with-recursive-lock (,lock) ,@body) - #-(or allegro cmu lispworks sbcl-thread) + #+sb-thread + `(sb-thread:with-mutex (,lock) ,@body) + #-(or allegro cmu lispworks sb-thread) `(progn ,@body) ) @@ -54,9 +54,13 @@ `(mp:with-timeout (,seconds) ,@body) #+cmu `(mp:with-timeout (,seconds) ,@body) - #+sbcl-thread + #+sb-thread `(sb-ext:with-timeout ,seconds ,@body) - #-(or allegro cmu sbcl-thread) + #-(or allegro cmu sb-thread) `(progn ,@body) ) +(defun process-sleep (n) + #+allegro (mp:process-sleep n) + #-allegro (sleep n)) +