Finished conversion from methods to functions with defaults (Stelian Ionescu <sionesc...
[bordeaux-threads.git] / src / corman.lisp
blob22eb2c5028ae12c675e5f2506533336c2b9af91d
1 #|
2 Copyright 2006, 2007 Greg Pfeil
4 Distributed under the MIT license (see LICENSE file)
5 |#
7 (in-package #:bordeaux-threads)
9 ;;; Thread Creation
11 (defun make-thread (function &key name)
12 (declare (ignore name))
13 (threads:create-thread function))
15 (defun current-thread ()
16 threads:*current-thread*)
18 ;;; Introspection/debugging
20 (defun destroy-thread (thread)
21 (signal-error-if-current-thread thread)
22 (threads:terminate-thread thread))
24 (mark-supported)