X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fthread.lisp;h=e1e0417fd02fa4338fb11fc4cf03555452aaef59;hb=62be7b271a57e0a125ccb0e68a6dd6cb54c75739;hp=512910536297338effaaa4121a36da7b0f1ef4e6;hpb=310d5f86d736ecf9525711b087b04797c549879c;p=sbcl.git diff --git a/src/code/thread.lisp b/src/code/thread.lisp index 5129105..e1e0417 100644 --- a/src/code/thread.lisp +++ b/src/code/thread.lisp @@ -1,7 +1,5 @@ (in-package "SB!THREAD") -(defvar *session-lock*) - (sb!xc:defmacro with-recursive-lock ((mutex) &body body) #!+sb-thread (with-unique-names (cfp) @@ -28,19 +26,3 @@ #!-sb-thread `(progn ,@body)) -#!+sb-thread -(defun get-foreground () - (when (not (eql (mutex-value *session-lock*) (current-thread-id))) - (get-mutex *session-lock*)) - (sb!sys:enable-interrupt :sigint #'sb!unix::sigint-handler) - t) -#!-sb-thread -(defun get-foreground () t) - -#!+sb-thread -(defun release-foreground () - (sb!sys:enable-interrupt :sigint :ignore) - (release-mutex *session-lock*) - t) -#!-sb-thread -(defun release-foreground () t)