• File: killthread.pyo
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python27/lib/python2.7/site-packages/paste/util/killthread.pyo
  • Date Modified: 08/01/2016 7:39 PM
  • File size: 1.39 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit

bNc@smdZddlZyddlZWnek
rAednXeeds`edndZdS(sB
Kill a thread, from http://sebulba.wikispaces.com/recipe+thread2
iNs=You cannot use paste.util.killthread without ctypes installedt	pythonapis=You cannot use paste.util.killthread without ctypes.pythonapicCst|tjtfs'tdnt|tsEtdntjjtj	|tj
|}|dkrtdn7|dkrtjjtj	|dtdndS(sraises the exception, performs cleanup if needed.

    tid is the value given by thread.get_ident() (an integer).
    Raise SystemExit to kill a thread.s(Only types can be raised (not instances)stid must be an integerisinvalid thread idis PyThreadState_SetAsyncExc failedN(
t
isinstancettypest	ClassTypettypet	TypeErrortinttctypesRtPyThreadState_SetAsyncExctc_longt	py_objectt
ValueErrortSystemError(ttidtexctypetres((sF/opt/alt/python27/lib/python2.7/site-packages/paste/util/killthread.pytasync_raises'(t__doc__RRtImportErrorthasattrR(((sF/opt/alt/python27/lib/python2.7/site-packages/paste/util/killthread.pyt<module>s