get_local#

barecat.util.threading.get_local(threadsafe)[source]#

Return a thread-local or shared storage object depending on threadsafe flag.

Parameters:

threadsafe (bool)