Home
last modified time | relevance | path

Searched refs:atexit (Results 1 - 25 of 118) sorted by relevance

12345

/third_party/python/Lib/test/
H A D_test_atexit.py2 Tests run by test_atexit in a subprocess since it clears atexit callbacks.
4 import atexit namespace
12 atexit._clear()
15 atexit._clear()
19 atexit.register(func, *args)
20 atexit._run_exitfuncs()
38 atexit.register(func1, 1, 2)
39 atexit.register(func2)
40 atexit.register(func2, 3, key="value")
41 atexit
[all...]
H A Dtest_atexit.py1 import atexit namespace
12 # Run _test_atexit.py in a subprocess since it calls atexit._clear()
20 import atexit
25 atexit.register(f, "one")
26 atexit.register(f, "two")
33 # bpo-42639: It is safe to have more than one atexit instance.
36 import atexit as atexit1
37 del sys.modules['atexit']
38 import atexit as atexit2
39 del sys.modules['atexit']
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/exit/
H A Ddouble_exit.c42 int result = atexit(atexit_0100); in atexit_0200()
65 result = atexit(atexit_0300); in main()
69 result = atexit(atexit_0200); in main()
H A Datexit.c27 * @tc.desc : Execute function when testing atexit method registration and exit
32 int result = atexit(atexit_0100); in main()
H A Da_cxa_finalize.c37 int ret = atexit(FinalizeFunc); in cxa_finalize_0100()
/third_party/python/Lib/multiprocessing/
H A Dutil.py14 import atexit namespace
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, (), {}))
333 debug('running all "atexit" finalizers with priority >= 0')
359 debug('running the remaining "atexit" finalizers')
362 atexit.register(_exit_function)
/third_party/python/Lib/
H A Dweakref.py550 atexit attribute is true will be run in reverse order of creation.
551 By default atexit is true.
566 __slots__ = ("weakref", "func", "args", "kwargs", "atexit", "index")
572 import atexit namespace
573 atexit.register(self._exitfunc)
580 info.atexit = True
614 def atexit(self): member in finalize
617 return bool(info) and info.atexit
619 @atexit.setter
620 def atexit(sel member in finalize
[all...]
H A Drlcompleter.py32 import atexit namespace
218 atexit.register(lambda: readline.set_completer(None))
/third_party/python/Modules/
H A Datexitmodule.c2 * atexit - allow programmer to define multiple exit functions to be executed
5 * Translated from atexit.py by Collin Winter.
11 #include "pycore_interp.h" // PyInterpreterState.atexit
21 return &interp->atexit; in get_atexit_state()
57 struct atexit_state *state = &interp->atexit; in _PyAtExit_Init()
74 struct atexit_state *state = &interp->atexit; in _PyAtExit_Fini()
100 _PyErr_WriteUnraisableMsg("in atexit callback", the_func); in atexit_callfuncs()
117 struct atexit_state *state = &interp->atexit; in _PyAtExit_Call()
226 atexit.register\n\
280 .m_name = "atexit",
[all...]
/third_party/benchmark/bindings/python/google_benchmark/
H A D__init__.py29 import atexit namespace
162 atexit.register(_benchmark.ClearRegisteredBenchmarks)
/third_party/musl/libc-test/src/regression/
H A Dpthread_exit-dtor.c46 // test if atexit handlers are run after pthread_exit in main()
54 atexit(die); in main()
62 t_error("atexit handler was not run after last thread exited" in main()
70 if (atexit(cleanup)) { in main()
71 t_error("atexit failed\n"); in main()
/third_party/curl/lib/
H A Damigaos.c98 atexit(Curl_amiga_cleanup); in Curl_amiga_init()
233 atexit(Curl_amiga_cleanup); in Curl_amiga_init()
/third_party/googletest/googletest/test/
H A Dgtest_test_utils.py42 import atexit namespace
135 atexit.register(_RemoveTempDir)
/third_party/musl/porting/liteos_m/kernel/src/exit/
H A Datexit.c3 int atexit(void (*func)(void)) in atexit() function
/third_party/musl/porting/uniproton/kernel/src/exit/
H A Datexit.c3 int atexit(void (*func)(void)) in atexit() function
/third_party/skia/third_party/externals/freetype/src/tools/
H A Dmake_distribution_archives.py7 import atexit namespace
119 atexit.register(clean_build_dir)
/third_party/python/Lib/test/libregrtest/
H A Dsetup.py1 import atexit namespace
137 atexit.register(restore_stdout)
/third_party/mesa3d/src/util/
H A Du_perfetto.cc43 atexit(&util_perfetto_fini); in util_perfetto_init_once()
/third_party/icu/icu4c/source/common/
H A Ducln_imp.h33 * 2) Using atexit()
78 * Use the ANSI C 'atexit' function. Note that this mechanism does not
92 atexit(&ucln_atexit_handler); in ucln_registerAutomaticCleanup()
/third_party/node/deps/icu-small/source/common/
H A Ducln_imp.h33 * 2) Using atexit()
78 * Use the ANSI C 'atexit' function. Note that this mechanism does not
92 atexit(&ucln_atexit_handler); in ucln_registerAutomaticCleanup()
/third_party/skia/src/utils/
H A DSkEventTracer.cpp51 atexit([]() { delete gUserTracer.load(); }); in SetInstance()
/third_party/skia/third_party/externals/icu/source/common/
H A Ducln_imp.h33 * 2) Using atexit()
78 * Use the ANSI C 'atexit' function. Note that this mechanism does not
92 atexit(&ucln_atexit_handler); in ucln_registerAutomaticCleanup()
/third_party/curl/tests/server/
H A Dresolve.c107 atexit(win32_cleanup); in main()
/third_party/libunwind/libunwind/tests/
H A DGtest-init.cxx27 atexit() handler. */
89 printf ("do_backtrace() from atexit()-handler:\n"); in a()
92 abort (); /* cannot portably call exit() from an atexit() handler */ in a()
106 return atexit (a); in main()
/third_party/mesa3d/src/egl/main/
H A Deglglobals.c130 atexit(_eglAtExit); in _eglAddAtExitCall()

Completed in 8 milliseconds

12345