Home
last modified time | relevance | path

Searched refs:atexit (Results 1 – 25 of 217) sorted by relevance

123456789

/external/python/cpython2/Lib/test/
Dtest_atexit.py4 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/
Datexit.rst1 :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/
Donexit.c9 static struct atexit *__atexit_list;
13 struct atexit *ap; in on_exit_exit()
24 struct atexit *as = malloc(sizeof(struct atexit)); in on_exit()
Datexit.h10 struct atexit { struct
13 struct atexit *next; argument
Datexit.c7 int atexit(void (*fctn) (void)) in atexit() function
/external/python/cpython2/Lib/multiprocessing/
Dutil.py38 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/
Dpic-load.ll6 @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/
Datexit2.cc18 atexit(atexit0); in main()
20 atexit(atexit1); in main()
Datexit.cc24 atexit(log_from_atexit); in main()
/external/llvm/test/CodeGen/Thumb2/
Dpic-load.ll7 @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/
Dasan_win_dynamic_runtime_thunk.cc62 extern "C" int __cdecl atexit(void (__cdecl *f)(void));
74 return atexit(UnregisterGlobals); in ScheduleUnregisterGlobals()
/external/autotest/site_utils/rpm_control_system/
Drpm_dispatcher_unittest.py43 rpm_dispatcher.atexit = self.mox.CreateMockAnything()
44 rpm_dispatcher.atexit.register(mox.IgnoreArg())
Drpm_dispatcher.py6 import atexit
73 atexit.register(self._unregister)
/external/syslinux/com32/include/sys/
Dmodule.h86 struct atexit;
126 struct atexit *atexit_list; // atexit() chain
/external/v8/tools/testrunner/server/
Ddaemon.py11 import atexit
74 atexit.register(self.delpid)
/external/toolchain-utils/crosperf/
Dcrosperf.py8 import atexit
119 atexit.register(Cleanup, experiment)
/external/chromium-trace/catapult/systrace/systrace/tracing_agents/
Dbattor_trace_agent.py5 import atexit
111 atexit.register(_reenable_charging_if_needed, self._battery_utils)
/external/parameter-framework/upstream/xmlserializer/
DXmlUtil.cpp45 atexit(xmlCleanupParser); in CXmlUtil()
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/trace_event_impl/
Dlog.py4 import atexit
152 atexit.register(_trace_disable_atexit)
/external/googletest/googletest/test/
Dgtest_test_utils.py36 import atexit
144 atexit.register(_RemoveTempDir)
/external/v8/testing/gtest/test/
Dgtest_test_utils.py36 import atexit
144 atexit.register(_RemoveTempDir)
/external/vulkan-validation-layers/tests/gtest-1.7.0/test/
Dgtest_test_utils.py36 import atexit
144 atexit.register(_RemoveTempDir)
/external/libmojo/third_party/catapult/devil/devil/android/perf/
Dperf_control.py5 import atexit
38 atexit.register(logging.warning, message)
/external/google-breakpad/src/testing/gtest/test/
Dgtest_test_utils.py36 import atexit
129 atexit.register(_RemoveTempDir)
/external/protobuf/gtest/test/
Dgtest_test_utils.py36 import atexit
129 atexit.register(_RemoveTempDir)

123456789