Changeset 15634


Ignore:
Timestamp:
02/08/23 16:37:24 (8 months ago)
Author:
Mark Evenson
Message:

doc: take a stab at explaining THREAD-FUNCTION-WRAPPER

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/threads.lisp

    r15436 r15634  
    3131;;; exception statement from your version.
    3232
    33 (in-package #:threads)
    34 
     33(in-package threads)
    3534(export '(make-mailbox mailbox-send mailbox-empty-p
    3635          mailbox-read mailbox-peek
    3736          make-thread-lock with-thread-lock
     37          thread-function-wrapper
    3838          current-thread yield
    39           make-mutex get-mutex release-mutex with-mutex))
     39          make-mutex get-mutex release-mutex with-mutex
     40          get-java-thread))
     41         
    4042;;
    4143;; MAKE-THREAD helper to establish restarts
    4244;;
    4345
    44 (defun thread-function-wrapper (fun)
     46(defun thread-function-wrapper (function)
     47  "Call FUNCTION with a simple abort restart"
    4548  (restart-case
    46       (funcall fun)
     49      (funcall function)
    4750    (abort () :report "Abort thread.")))
    4851
Note: See TracChangeset for help on using the changeset viewer.