diff options
| author | Eli Bendersky <eliben@gmail.com> | 2011-04-16 15:34:29 +0300 |
|---|---|---|
| committer | Eli Bendersky <eliben@gmail.com> | 2011-04-16 15:34:29 +0300 |
| commit | 9910660f9924d1034984117b14633268ebef83fa (patch) | |
| tree | 5487a4622adf07c5e85b29aace2279ae6f78ab95 /Python/thread_lwp.h | |
| parent | b656205bc1a6e5243edc5d7f5eb37506e98fe118 (diff) | |
| parent | 45560b23ff86fd5c07a3c1e58a782a417531b7ea (diff) | |
| download | cpython-9910660f9924d1034984117b14633268ebef83fa.tar.gz | |
Issue #11855: merge from 3.1
Diffstat (limited to 'Python/thread_lwp.h')
| -rw-r--r-- | Python/thread_lwp.h | 40 |
1 files changed, 2 insertions, 38 deletions
diff --git a/Python/thread_lwp.h b/Python/thread_lwp.h index 7519cd454e..ba7b37ad7e 100644 --- a/Python/thread_lwp.h +++ b/Python/thread_lwp.h @@ -47,50 +47,14 @@ long PyThread_get_thread_ident(void) return tid.thread_id; } -static void do_PyThread_exit_thread(int no_cleanup) +void PyThread_exit_thread(void) { dprintf(("PyThread_exit_thread called\n")); if (!initialized) - if (no_cleanup) - _exit(0); - else - exit(0); + exit(0); lwp_destroy(SELF); } -void PyThread_exit_thread(void) -{ - do_PyThread_exit_thread(0); -} - -void PyThread__exit_thread(void) -{ - do_PyThread_exit_thread(1); -} - -#ifndef NO_EXIT_PROG -static void do_PyThread_exit_prog(int status, int no_cleanup) -{ - dprintf(("PyThread_exit_prog(%d) called\n", status)); - if (!initialized) - if (no_cleanup) - _exit(status); - else - exit(status); - pod_exit(status); -} - -void PyThread_exit_prog(int status) -{ - do_PyThread_exit_prog(status, 0); -} - -void PyThread__exit_prog(int status) -{ - do_PyThread_exit_prog(status, 1); -} -#endif /* NO_EXIT_PROG */ - /* * Lock support. */ |
