Home
last modified time | relevance | path

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

12345678910>>...16

/external/python/cpython3/Lib/test/
Dtest_atexit.py4 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/
Dtest_atexit.py4 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/
Datexit3.cpp31 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()
Datexit2.cpp18 atexit(atexit0); in main()
20 atexit(atexit1); in main()
/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/python/cpython3/Doc/library/
Datexit.rst1 :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/
Dznotext-plt-relocations.s2 .global atexit symbol
3 .type atexit,@function
4 atexit: label
/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, (), {}))
333 atexit.register(_exit_function)
/external/python/cpython3/Lib/multiprocessing/
Dutil.py14 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/
Datexit2.cc18 atexit(atexit0); in main()
20 atexit(atexit1); in main()
/external/chromium-trace/catapult/common/py_utils/py_utils/
Datexit_with_log.py5 import atexit
21 atexit.register(_WrapFunction(function), *args, **kwargs)
/external/llvm-project/clang/test/Driver/
Drewrite-legacy-objc.m6 …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/
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/python/cpython3/Lib/
Dweakref.py562 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/
Dpic-load.ll8 @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/
Dtrace_perf_output.py9 import atexit
47 @atexit.register
/external/llvm-project/compiler-rt/lib/asan/
Dasan_win_dynamic_runtime_thunk.cpp91 extern "C" int __cdecl atexit(void (__cdecl *f)(void));
103 return atexit(UnregisterGlobals); in ScheduleUnregisterGlobals()
/external/llvm-project/lld/test/ELF/
Dznotext-plt-relocations.s13 # CHECK-NEXT: R_X86_64_JUMP_SLOT atexit 0x0
20 .long atexit - . - 4
/external/autotest/client/bin/
Dfps_meter.py47 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/
Dloader.py25 import atexit
59 atexit.register(lambda: _remove_file(file_name))
/external/autotest/site_utils/rpm_control_system/
Drpm_dispatcher_unittest.py45 rpm_dispatcher.atexit = self.mox.CreateMockAnything()
46 rpm_dispatcher.atexit.register(mox.IgnoreArg())
/external/exoplayer/
Dupdate.py8 import atexit
59 atexit.register(cleanup)
/external/adhd/cras/src/plc/
Dparse_sco.py12 import atexit
40 atexit.register(self._cleanup)
/external/libpcap/testprogs/
Dvisopts.py301 import atexit
304 atexit.register(shutil.rmtree, os.getcwd())

12345678910>>...16