Package gozerbot :: Module thr
[hide private]
[frames] | no frames]

Module thr

source code

own threading wrapper


Copyright: this file is in the public domain

Classes [hide private]
  Botcommand
thread for running bot commands ..
  Thr
thread wrapper
Functions [hide private]
 
getname(func)
get name of function/method
source code
 
start_new_thread(func, arglist, kwargs=None)
start a new thread ..
source code
 
threaded(func) source code
Variables [hide private]
  dontshowthreads = ['Periodical.runjob']
  methodre = re.compile(r'(?i)method\s+(\S+)')
  funcre = re.compile(r'(?i)function\s+(\S+)')
  threadlock = thread.allocate_lock()
Function Details [hide private]

start_new_thread(func, arglist, kwargs=None)

source code 

start a new thread .. set name to function/method name