/external/python/cpython3/Lib/test/ |
D | test_atexit.py | 4 import atexit 39 atexit._clear() 44 atexit._clear() 48 atexit.register(h1) 49 atexit.register(h4) 50 atexit.register(h4, 4, kw="abc") 51 atexit._run_exitfuncs() 57 atexit.register(lambda: 1, 0, 0, (x for x in (1,2)), 0, 0) 58 self.assertRaises(TypeError, atexit._run_exitfuncs) 62 atexit.register(h1) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_atexit.py | 4 import atexit 19 self.save_handlers = atexit._exithandlers 20 atexit._exithandlers = [] 25 atexit._exithandlers = self.save_handlers 28 atexit.register(self.h1) 29 atexit.register(self.h4) 30 atexit.register(self.h4, 4, kw="abc") 31 atexit._run_exitfuncs() 36 atexit.register(lambda: 1, 0, 0, (x for x in (1,2)), 0, 0) 37 self.assertRaises(TypeError, atexit._run_exitfuncs) [all …]
|
/external/llvm-project/compiler-rt/test/tsan/ |
D | atexit3.cpp | 31 atexit(atexit0); in main() 32 atexit(atexit1); in main() 33 atexit(atexit2); in main() 34 atexit(atexit3); in main() 35 atexit(atexit4); in main() 36 atexit(atexit5); in main()
|
D | atexit2.cpp | 18 atexit(atexit0); in main() 20 atexit(atexit1); in main()
|
/external/python/cpython2/Doc/library/ |
D | atexit.rst | 1 :mod:`atexit` --- Exit handlers 4 .. module:: atexit 12 **Source code:** :source:`Lib/atexit.py` 16 The :mod:`atexit` module defines a single function to register cleanup 18 interpreter termination. :mod:`atexit` runs these functions in the *reverse* 34 :mod:`atexit` without the programmer's knowledge. Authors who use 35 ``sys.exitfunc`` should convert their code to use :mod:`atexit` instead. The 37 :mod:`atexit` and register the function that had been bound to ``sys.exitfunc``. 66 Useful example of :mod:`atexit` to read and write :mod:`readline` history files. 71 :mod:`atexit` Example [all …]
|
/external/python/cpython3/Doc/library/ |
D | atexit.rst | 1 :mod:`atexit` --- Exit handlers 4 .. module:: atexit 12 The :mod:`atexit` module defines functions to register and unregister cleanup 14 interpreter termination. :mod:`atexit` runs these functions in the *reverse* 61 Useful example of :mod:`atexit` to read and write :mod:`readline` history 67 :mod:`atexit` Example 89 import atexit 90 atexit.register(savecounter) 98 import atexit 99 atexit.register(goodbye, 'Donny', 'nice') [all …]
|
/external/llvm-project/lld/test/ELF/Inputs/ |
D | znotext-plt-relocations.s | 2 .global atexit symbol 3 .type atexit,@function 4 atexit: label
|
/external/python/cpython2/Lib/multiprocessing/ |
D | util.py | 38 import atexit 89 import logging, atexit 101 if hasattr(atexit, 'unregister'): 102 atexit.unregister(_exit_function) 103 atexit.register(_exit_function) 105 atexit._exithandlers.remove((_exit_function, (), {})) 106 atexit._exithandlers.append((_exit_function, (), {})) 333 atexit.register(_exit_function)
|
/external/python/cpython3/Lib/multiprocessing/ |
D | util.py | 14 import atexit 75 if hasattr(atexit, 'unregister'): 76 atexit.unregister(_exit_function) 77 atexit.register(_exit_function) 79 atexit._exithandlers.remove((_exit_function, (), {})) 80 atexit._exithandlers.append((_exit_function, (), {})) 362 atexit.register(_exit_function)
|
/external/compiler-rt/test/tsan/ |
D | atexit2.cc | 18 atexit(atexit0); in main() 20 atexit(atexit1); in main()
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | atexit_with_log.py | 5 import atexit 21 atexit.register(_WrapFunction(function), *args, **kwargs)
|
/external/llvm-project/clang/test/Driver/ |
D | rewrite-legacy-objc.m | 6 …locks" "-fencode-extended-block-signature" "-fregister-global-dtors-with-atexit" "-fgnuc-version=4… 12 …locks" "-fencode-extended-block-signature" "-fregister-global-dtors-with-atexit" "-fgnuc-version=4… 13 …locks" "-fencode-extended-block-signature" "-fregister-global-dtors-with-atexit" "-fgnuc-version=4…
|
/external/llvm/test/CodeGen/Thumb2/ |
D | pic-load.ll | 7 @llvm.used = appending global [1 x i8*] [i8* bitcast (i32 (void ()*)* @atexit to i8*)], section "ll… 9 define hidden i32 @atexit(void ()* %func) nounwind { 11 ; CHECK-LABEL: atexit:
|
/external/compiler-rt/lib/asan/ |
D | asan_win_dynamic_runtime_thunk.cc | 62 extern "C" int __cdecl atexit(void (__cdecl *f)(void)); 74 return atexit(UnregisterGlobals); in ScheduleUnregisterGlobals()
|
/external/python/cpython3/Lib/ |
D | weakref.py | 562 import atexit 563 atexit.register(self._exitfunc) 570 info.atexit = True 604 def atexit(self): member in finalize 607 return bool(info) and info.atexit 609 @atexit.setter 610 def atexit(self, value): member in finalize 613 info.atexit = bool(value) 627 L = [(f,i) for (f,i) in cls._registry.items() if i.atexit]
|
/external/llvm-project/llvm/test/CodeGen/Thumb2/ |
D | pic-load.ll | 8 @llvm.used = appending global [1 x i8*] [i8* bitcast (i32 (void ()*)* @atexit to i8*)], section "ll… 10 define i32 @atexit(void ()* %func) { 11 ; CHECK-PIC-LABEL: atexit: 28 ; CHECK-NOMOVT-LABEL: atexit:
|
/external/bcc/examples/tracing/ |
D | trace_perf_output.py | 9 import atexit 47 @atexit.register
|
/external/llvm-project/compiler-rt/lib/asan/ |
D | asan_win_dynamic_runtime_thunk.cpp | 91 extern "C" int __cdecl atexit(void (__cdecl *f)(void)); 103 return atexit(UnregisterGlobals); in ScheduleUnregisterGlobals()
|
/external/llvm-project/lld/test/ELF/ |
D | znotext-plt-relocations.s | 13 # CHECK-NEXT: R_X86_64_JUMP_SLOT atexit 0x0 20 .long atexit - . - 4
|
/external/autotest/client/bin/ |
D | fps_meter.py | 47 import atexit 113 atexit.register(common_lib_utils.open_write_close, filename, orig) 124 atexit.register(common_lib_utils.open_write_close, 149 atexit.register(common_lib_utils.open_write_close, WORKQ_FILTER, '0')
|
/external/tensorflow/tensorflow/python/autograph/pyct/ |
D | loader.py | 25 import atexit 59 atexit.register(lambda: _remove_file(file_name))
|
/external/autotest/site_utils/rpm_control_system/ |
D | rpm_dispatcher_unittest.py | 45 rpm_dispatcher.atexit = self.mox.CreateMockAnything() 46 rpm_dispatcher.atexit.register(mox.IgnoreArg())
|
/external/exoplayer/ |
D | update.py | 8 import atexit 59 atexit.register(cleanup)
|
/external/adhd/cras/src/plc/ |
D | parse_sco.py | 12 import atexit 40 atexit.register(self._cleanup)
|
/external/libpcap/testprogs/ |
D | visopts.py | 301 import atexit 304 atexit.register(shutil.rmtree, os.getcwd())
|