Whitespace changes and add modeline that inhibits indentation with tabs.
[bordeaux-threads.git] / src / corman.lisp
blobc4fbb72ae2823352eb05f76bde92bac53cfd6c84
1 ;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; indent-tabs-mode: nil -*-
3 #|
4 Copyright 2006, 2007 Greg Pfeil
6 Distributed under the MIT license (see LICENSE file)
7 |#
9 (in-package #:bordeaux-threads)
11 ;;; Thread Creation
13 (defun make-thread (function &key name)
14 (declare (ignore name))
15 (threads:create-thread (binding-default-specials function)))
17 (defun current-thread ()
18 threads:*current-thread*)
20 ;;; Introspection/debugging
22 (defun destroy-thread (thread)
23 (signal-error-if-current-thread thread)
24 (threads:terminate-thread thread))
26 (mark-supported)