/external/python/cpython2/Lib/test/ |
D | test_atexit.py | 4 import atexit 14 self.save_handlers = atexit._exithandlers 15 atexit._exithandlers = [] 20 atexit._exithandlers = self.save_handlers 23 atexit.register(self.h1) 24 atexit.register(self.h4) 25 atexit.register(self.h4, 4, kw="abc") 26 atexit._run_exitfuncs() 31 atexit.register(lambda: 1, 0, 0, (x for x in (1,2)), 0, 0) 32 self.assertRaises(TypeError, atexit._run_exitfuncs) [all …]
|
/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/syslinux/com32/lib/ |
D | onexit.c | 9 static struct atexit *__atexit_list; 13 struct atexit *ap; in on_exit_exit() 24 struct atexit *as = malloc(sizeof(struct atexit)); in on_exit()
|
D | atexit.h | 10 struct atexit { struct 13 struct atexit *next; argument
|
D | atexit.c | 7 int atexit(void (*fctn) (void)) in atexit() function
|
/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, (), {})) 330 atexit.register(_exit_function)
|
/external/swiftshader/third_party/LLVM/test/CodeGen/Thumb2/ |
D | pic-load.ll | 6 @llvm.used = appending global [1 x i8*] [i8* bitcast (i32 (void ()*)* @atexit to i8*)], section "ll… 8 define hidden i32 @atexit(void ()* %func) nounwind { 10 ; CHECK: atexit:
|
/external/compiler-rt/test/tsan/ |
D | atexit2.cc | 18 atexit(atexit0); in main() 20 atexit(atexit1); in main()
|
D | atexit.cc | 24 atexit(log_from_atexit); in main()
|
/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/autotest/site_utils/rpm_control_system/ |
D | rpm_dispatcher_unittest.py | 43 rpm_dispatcher.atexit = self.mox.CreateMockAnything() 44 rpm_dispatcher.atexit.register(mox.IgnoreArg())
|
D | rpm_dispatcher.py | 6 import atexit 73 atexit.register(self._unregister)
|
/external/syslinux/com32/include/sys/ |
D | module.h | 86 struct atexit; 126 struct atexit *atexit_list; // atexit() chain
|
/external/v8/tools/testrunner/server/ |
D | daemon.py | 11 import atexit 74 atexit.register(self.delpid)
|
/external/toolchain-utils/crosperf/ |
D | crosperf.py | 8 import atexit 119 atexit.register(Cleanup, experiment)
|
/external/chromium-trace/catapult/systrace/systrace/tracing_agents/ |
D | battor_trace_agent.py | 5 import atexit 111 atexit.register(_reenable_charging_if_needed, self._battery_utils)
|
/external/parameter-framework/upstream/xmlserializer/ |
D | XmlUtil.cpp | 45 atexit(xmlCleanupParser); in CXmlUtil()
|
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/ |
D | log.py | 4 import atexit 152 atexit.register(_trace_disable_atexit)
|
/external/googletest/googletest/test/ |
D | gtest_test_utils.py | 36 import atexit 144 atexit.register(_RemoveTempDir)
|
/external/v8/testing/gtest/test/ |
D | gtest_test_utils.py | 36 import atexit 144 atexit.register(_RemoveTempDir)
|
/external/vulkan-validation-layers/tests/gtest-1.7.0/test/ |
D | gtest_test_utils.py | 36 import atexit 144 atexit.register(_RemoveTempDir)
|
/external/libmojo/third_party/catapult/devil/devil/android/perf/ |
D | perf_control.py | 5 import atexit 38 atexit.register(logging.warning, message)
|
/external/google-breakpad/src/testing/gtest/test/ |
D | gtest_test_utils.py | 36 import atexit 129 atexit.register(_RemoveTempDir)
|
/external/protobuf/gtest/test/ |
D | gtest_test_utils.py | 36 import atexit 129 atexit.register(_RemoveTempDir)
|