summaryrefslogtreecommitdiffstats
path: root/Python/thread_solaris.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-05-23 12:43:41 (GMT)
committerGuido van Rossum <guido@python.org>1994-05-23 12:43:41 (GMT)
commite944da8916e053a6a1deda8ce3fa61304d68f872 (patch)
tree335f8f6a765cce7698846de306af51157cbfeaac /Python/thread_solaris.h
parent34162a123a28f9092d6d9f361dd11bbfe23139a4 (diff)
downloadcpython-e944da8916e053a6a1deda8ce3fa61304d68f872.zip
cpython-e944da8916e053a6a1deda8ce3fa61304d68f872.tar.gz
cpython-e944da8916e053a6a1deda8ce3fa61304d68f872.tar.bz2
ceval.c: dict of local mapping is now a tuple
compile.c: lists and dictionary in code objects become tuples import.c: bump MAGIC thread*.[ch]: added thread_ident() function version.c: added '++' to version number and bumped date
Diffstat (limited to 'Python/thread_solaris.h')
-rw-r--r--Python/thread_solaris.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Python/thread_solaris.h b/Python/thread_solaris.h
index 08cf6dd..8bbbeb0 100644
--- a/Python/thread_solaris.h
+++ b/Python/thread_solaris.h
@@ -76,6 +76,13 @@ int start_new_thread _P2(func, void (*func) _P((void *)), arg, void *arg)
return success < 0 ? 0 : 1;
}
+long get_thread_ident _P0()
+{
+ if (!initialized)
+ init_thread();
+ return thr_self();
+}
+
static void do_exit_thread _P1(no_cleanup, int no_cleanup)
{
dprintf(("exit_thread called\n"));