Version 1.102 (other changes not in last commit)
[kmrcl.git] / processes.lisp
index db626132664cfe39f90e52d613e0155cb9e3573c..7017ce74e73d95f9cc8fe4fdd57e64d4919f5965 100644 (file)
@@ -1,4 +1,4 @@
-;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10; Package: modlisp -*-
+;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
 ;;;; *************************************************************************
 ;;;; FILE IDENTIFICATION
 ;;;;
@@ -6,8 +6,6 @@
 ;;;; Purpose:       Multiprocessing functions
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  June 2003
-;;;;
-;;;; $Id$
 ;;;; *************************************************************************
 
 (in-package #:kmrcl)
@@ -17,7 +15,7 @@
   #+allegro (mp:process-run-function name func)
   #+cmu (mp:make-process func :name name)
   #+lispworks (mp:process-run-function name nil func)
-  #+sb-thread (sb-thread:make-thread func)
+  #+sb-thread (sb-thread:make-thread func :name name)
   #+openmcl (ccl:process-run-function name func)
   #-(or allegro cmu lispworks sb-thread openmcl) (funcall func)
   )
@@ -46,7 +44,7 @@
   #+lispworks
   `(mp:with-lock (,lock) ,@body)
   #+sb-thread
-  `(sb-thread:with-mutex (,lock) ,@body)
+  `(sb-thread:with-recursive-lock (,lock) ,@body)
   #+openmcl
   `(ccl:with-lock-grabbed (,lock) ,@body)
   #-(or allegro cmu lispworks sb-thread openmcl)
@@ -69,7 +67,7 @@
   #-(or allegro cmu sb-thread openmcl)
   `(progn ,@body)
   )
-  
+
 (defun process-sleep (n)
   #+allegro (mp:process-sleep n)
   #-allegro (sleep n))