Home
last modified time | relevance | path

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

12345678910

/third_party/python/Lib/test/
D_test_atexit.py4 import atexit
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._run_exitfuncs()
78 atexit.register(inc)
[all …]
Dtest_atexit.py1 import atexit
58 n = atexit._ncallbacks()
68 self.assertEqual(atexit._ncallbacks(), n)
73 n = atexit._ncallbacks()
83 self.assertEqual(atexit._ncallbacks(), n)
/third_party/python/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*
54 of that function in the :mod:`atexit` call stack will be removed. Equality
62 Useful example of :mod:`atexit` to read and write :mod:`readline` history
68 :mod:`atexit` Example
90 import atexit
92 atexit.register(savecounter)
100 import atexit
[all …]
/third_party/python/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)
/third_party/pixman/pixman/
Dpixman-timer.c54 int atexit (void (*function)(void)); in pixman_timer_register()
58 atexit (dump_timers); in pixman_timer_register()
/third_party/python/Lib/
Dweakref.py573 import atexit
574 atexit.register(self._exitfunc)
581 info.atexit = True
615 def atexit(self): member in finalize
618 return bool(info) and info.atexit
620 @atexit.setter
621 def atexit(self, value): member in finalize
624 info.atexit = bool(value)
638 L = [(f,i) for (f,i) in cls._registry.items() if i.atexit]
Drlcompleter.py32 import atexit
218 atexit.register(lambda: readline.set_completer(None))
/third_party/python/Modules/
Datexitmodule.c21 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()
117 struct atexit_state *state = &interp->atexit; in _PyAtExit_Call()
/third_party/musl/libc-test/src/regression/
Dpthread_exit-dtor.c54 atexit(die); in main()
70 if (atexit(cleanup)) { in main()
/third_party/grpc/src/python/grpcio_tests/tests/unit/
D_server_shutdown_test.py20 import atexit
51 atexit.register(cleanup_processes)
/third_party/grpc/examples/python/multiprocessing/
Dclient.py21 import atexit
57 atexit.register(_shutdown_worker)
/third_party/mindspore/mindspore/dataset/engine/
Dgraphdata.py19 import atexit
108 atexit.register(stop)
113 atexit.register(stop)
/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestlock.c106 atexit(SDL_Quit_Wrapper); in main()
117 atexit(printid); in main()
/third_party/libsoup/libsoup/
Dgconstructor.h66 …int _func ## _constructor(void) { atexit (_func); g_slist_find (NULL, _array ## _func); return 0;…
90 static int _func ## _constructor(void) { atexit (_func); return 0; } \
/third_party/glib/glib/
Dgconstructor.h68 …int _func ## _constructor(void) { atexit (_func); g_slist_find (NULL, _array ## _func); return 0;…
92 static int _func ## _constructor(void) { atexit (_func); return 0; } \
Dgutils.h320 #define g_ATEXIT(proc) (atexit (proc)) GLIB_DEPRECATED_MACRO_IN_2_32
347 int atexit (void (*)(void));
349 #define g_atexit(func) atexit(func) GLIB_DEPRECATED_MACRO_IN_2_32
/third_party/boost/libs/mpi/src/python/
Dpy_environment.cpp97 object atexit = object(handle<>(PyImport_ImportModule("atexit"))); in export_environment() local
99 atexit.attr("register")(finalize); in export_environment()
/third_party/musl/porting/liteos_m/kernel/src/exit/
Datexit.c3 int atexit(void (*func)(void)) in atexit() function
/third_party/musl/porting/uniproton/kernel/src/exit/
Datexit.c3 int atexit(void (*func)(void)) in atexit() function
/third_party/python/Lib/test/libregrtest/
Dsetup.py1 import atexit
137 atexit.register(restore_stdout)
/third_party/mindspore/mindspore/train/summary/
Dsummary_record.py16 import atexit
200 atexit.register(self.close)
423 atexit.unregister(self.close)
/third_party/musl/libc-test/src/functionalext/supplement/exit/
Datexit.c32 int result = atexit(atexit_0100); in main()
Da_cxa_finalize.c37 int ret = atexit(FinalizeFunc); in cxa_finalize_0100()
/third_party/grpc/tools/interop_matrix/
Dcreate_matrix_images.py20 import atexit
122 atexit.register(lambda: subprocess.call(['rm', '-rf', temp_dir]))
248 atexit.register(cleanup)
/third_party/googletest/googletest/test/
Dgtest_test_utils.py41 import atexit
141 atexit.register(_RemoveTempDir)

12345678910