blob: 6d97fcee02a7cf39353e964e0d56db46340d2a41 [file] [log] [blame]
Guido van Rossumd709b481999-03-22 22:25:39 +00001#ifndef Py_THREAD_H
2#define Py_THREAD_H
3
4/***********************************************************
5Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
6The Netherlands.
7
8 All Rights Reserved
9
10Permission to use, copy, modify, and distribute this software and its
11documentation for any purpose and without fee is hereby granted,
12provided that the above copyright notice appear in all copies and that
13both that copyright notice and this permission notice appear in
14supporting documentation, and that the names of Stichting Mathematisch
15Centrum or CWI or Corporation for National Research Initiatives or
16CNRI not be used in advertising or publicity pertaining to
17distribution of the software without specific, written prior
18permission.
19
20While CWI is the initial source for this software, a modified version
21is made available by the Corporation for National Research Initiatives
22(CNRI) at the Internet address ftp://ftp.python.org.
23
24STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
25REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
26MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
27CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
28DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
29PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
30TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
31PERFORMANCE OF THIS SOFTWARE.
32
33******************************************************************/
34
35/* Header file for old code (such as ILU) that includes "thread.h"
36 instead of "pythread.h", and might use the old function names. */
37
38#include "pythread.h"
39
40#define init_thread PyThread_init_thread
41#define start_new_thread PyThread_start_new_thread
42#ifndef __BEOS__
43#define exit_thread PyThread_exit_thread
44#define _exit_thread PyThread__exit_thread
45#endif
46#define get_thread_ident PyThread_get_thread_ident
47#define allocate_lock PyThread_allocate_lock
48#define free_lock PyThread_free_lock
49#define acquire_lock PyThread_acquire_lock
50#define release_lock PyThread_release_lock
51#define allocate_sema PyThread_allocate_sema
52#define free_sema PyThread_free_sema
53#define down_sema PyThread_down_sema
54#define up_sema PyThread_up_sema
55#define exit_prog PyThread_exit_prog
56#define _exit_prog PyThread__exit_prog
57#define create_key PyThread_create_key
58#define delete_key PyThread_delete_key
59#define get_key_value PyThread_get_key_value
60#define set_key_value PyThread_set_key_value
61
62#endif /* !Py_THREAD_H */