diff options
author | Sylvain Hellegouarch <sh@defuze.org> | 2009-08-04 08:15:10 +0000 |
---|---|---|
committer | Sylvain Hellegouarch <sh@defuze.org> | 2009-08-04 08:15:10 +0000 |
commit | 1bbf04512b6a966c0ed1901ab07af5ab9dfa609c (patch) | |
tree | c0f813511de17545a7a01e23b205d686a0f4f161 /cherrypy/process/plugins.py | |
parent | d496679755bfed468ba87f0bf7a7dbaf32120a99 (diff) | |
download | cherrypy-git-1bbf04512b6a966c0ed1901ab07af5ab9dfa609c.tar.gz |
Using the public thread.get_ident API call to retrieve the ID of a thread so that it makes Jython happy
Diffstat (limited to 'cherrypy/process/plugins.py')
-rw-r--r-- | cherrypy/process/plugins.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cherrypy/process/plugins.py b/cherrypy/process/plugins.py index 219d7a1f..210e7d2e 100644 --- a/cherrypy/process/plugins.py +++ b/cherrypy/process/plugins.py @@ -9,6 +9,7 @@ except NameError: import signal as _signal import sys import time +import thread import threading # _module__file__base is used by Autoreload to make @@ -537,7 +538,7 @@ class ThreadManager(SimplePlugin): If the current thread has already been seen, any 'start_thread' listeners will not be run again. """ - thread_ident = threading._get_ident() + thread_ident = thread.get_ident() if thread_ident not in self.threads: # We can't just use _get_ident as the thread ID # because some platforms reuse thread ID's. |