コード例 #1
0
ファイル: component.py プロジェクト: eirrgang/radical.pilot
    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()
コード例 #2
0
ファイル: stack_traces.py プロジェクト: afcarl/radical.utils
def raise_something():
    print '%s wants an exception' % ru.get_caller_name()
    raise RuntimeError('oops')
コード例 #3
0
ファイル: stack_traces.py プロジェクト: afcarl/radical.utils
def inner_4(arg_1, arg_2):
    print ru.get_caller_name()
コード例 #4
0
def inner_4(arg_1, arg_2):  # pylint: disable=W0613

    print(ru.get_caller_name())