def get_current_thread_object_dict():
 rval = dict()
 threading._active_limbo_lock.acquire()
 rval.update(threading._active)
 rval.update(threading._limbo)
 threading._active_limbo_lock.release()
 return rval

def get_current_thread_object_dict ( ) : rval = dict ( ) threading . _active_limbo_lock . acquire ( ) rval . update ( threading . _active ) rval . update ( threading . _limbo ) threading . _active_limbo_lock . release ( ) return rval
get a dictionary of all thread objects created via the threading module keyed by thread_id .