I'm using Python ver 2.6.4
我正在使用Python ver 2.6.4
There is a function I have to call from a C library when my extension module exits/is unloaded. What would be the equivalent of atexit for a C extension module?
当我的扩展模块退出/卸载时,我必须从C库调用一个函数。对于C扩展模块,atexit相当于什么?
1 个解决方案
#1
4
The Py_AtExit()
function can be used to register up to 32 cleanup functions.
Py_AtExit()函数可用于注册最多32个清理函数。
#1
4
The Py_AtExit()
function can be used to register up to 32 cleanup functions.
Py_AtExit()函数可用于注册最多32个清理函数。