Untabify bordeaux-threads-test.lisp
[bordeaux-threads.git] / src / impl-corman.lisp
bloba9c659938264755e630a3c4b9a2aa83e247de246
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 name)
14 (declare (ignore name))
15 (threads:create-thread 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)