[usocket-cvs] r441 - usocket/branches/0.4.x/backend

Chun Tian (binghe) ctian at common-lisp.net
Tue Oct 21 13:30:18 UTC 2008


Author: ctian
Date: Tue Oct 21 13:30:16 2008
New Revision: 441

Log:
[lispworks] on non-win32 platform, add a warn when MP is not enabled when load.

Modified:
   usocket/branches/0.4.x/backend/lispworks.lisp

Modified: usocket/branches/0.4.x/backend/lispworks.lisp
==============================================================================
--- usocket/branches/0.4.x/backend/lispworks.lisp	(original)
+++ usocket/branches/0.4.x/backend/lispworks.lisp	Tue Oct 21 13:30:16 2008
@@ -8,6 +8,22 @@
 (eval-when (:compile-toplevel :load-toplevel :execute)
   (require "comm"))
 
+;;; ---------------------------------------------------------------------------
+;;;  Warn if multiprocessing is not running on Lispworks
+
+#-win32
+(defun check-for-multiprocessing-started (&optional errorp)
+  (unless mp:*current-process*
+    (funcall (if errorp 'error 'warn)
+             "You must start multiprocessing on Lispworks by calling~
+              ~%~3t(~s)~
+              ~%for ~s function properly."
+             'mp:initialize-multiprocessing
+             'wait-for-input)))
+
+#-win32
+(check-for-multiprocessing-started)
+
 #+win32
 (fli:register-module "ws2_32")
 




More information about the usocket-cvs mailing list