Changeset 5607
- Timestamp:
- Dec 14, 2006, 2:12:37 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ccl/level-1/l1-lisp-threads.lisp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ccl/level-1/l1-lisp-threads.lisp
r5484 r5607 402 402 (cons function args))) 403 403 404 (defun thread-enable (thread activation-semaphore allocation-quantum &optional (timeout most-positive-fixnum))404 (defun thread-enable (thread termination-semaphore allocation-quantum &optional (timeout most-positive-fixnum)) 405 405 (let* ((tcr (or (lisp-thread.tcr thread) (new-tcr-for-thread thread)))) 406 406 (with-macptrs (s) … … 410 410 tcr 411 411 (lisp-thread.startup-function thread)) 412 (%activate-tcr tcr activation-semaphore allocation-quantum)412 (%activate-tcr tcr termination-semaphore allocation-quantum) 413 413 thread)))) 414 414 … … 424 424 425 425 (defun kill-lisp-thread (thread) 426 (let* ((pthread (lisp-thread-os-thread thread))) 427 (when pthread 428 (setf (lisp-thread.tcr thread) nil 429 (lisp-thread.state thread) :exit) 430 (#_pthread_cancel pthread)))) 426 (unless (eq thread initial-thread) 427 (let* ((pthread (lisp-thread-os-thread thread))) 428 (when pthread 429 (setf (lisp-thread.tcr thread) nil 430 (lisp-thread.state thread) :exit) 431 (#_pthread_kill pthread #$SIGQUIT))))) 431 432 432 433 ;;; This returns the underlying pthread, whatever that is.
Note:
See TracChangeset
for help on using the changeset viewer.
