Exemplo n.º 1
0
    def stop(self, timeout=None):  # noqa
        '''
        We need to terminate and join all threads, close all comunication
        channels, etc.  But we trust on the correct invocation of the finalizers
        to do all this, and thus here only forward the stop request to the base
        class.
        '''

        #  FIXME: implement timeout, or remove parameter

        self._log.info('stop %s (%s : %s) [%s]', self.uid, os.getpid(),
                       ru.get_thread_name(), ru.get_caller_name())

        self._term.set()
        self._finalize()
Exemplo n.º 2
0
def raise_something():
    print '%s wants an exception' % ru.get_caller_name()
    raise RuntimeError('oops')
Exemplo n.º 3
0
def inner_4(arg_1, arg_2):
    print ru.get_caller_name()
Exemplo n.º 4
0
def inner_4(arg_1, arg_2):  # pylint: disable=W0613

    print(ru.get_caller_name())