423baff73b
- Docker bridge 网络隔离(8000 端口封死) - Gunicorn 4 Worker 多进程 - Alembic 数据库迁移基线 - 日志轮转 20m×3 - JWT 密钥 + DB 密码 + CORS 收紧 - 3-2-1 备份链路(NAS + R740-B 冷备) - 连接池 pool_pre_ping + pool_recycle=3600
32 lines
846 B
Cython
32 lines
846 B
Cython
cdef extern from "Python.h":
|
|
int PY_VERSION_HEX
|
|
|
|
unicode PyUnicode_FromString(const char *)
|
|
|
|
void* PyMem_RawMalloc(size_t n) nogil
|
|
void* PyMem_RawRealloc(void *p, size_t n) nogil
|
|
void* PyMem_RawCalloc(size_t nelem, size_t elsize) nogil
|
|
void PyMem_RawFree(void *p) nogil
|
|
|
|
object PyUnicode_EncodeFSDefault(object)
|
|
void PyErr_SetInterrupt() nogil
|
|
|
|
object PyMemoryView_FromMemory(char *mem, ssize_t size, int flags)
|
|
object PyMemoryView_FromObject(object obj)
|
|
int PyMemoryView_Check(object obj)
|
|
|
|
cdef enum:
|
|
PyBUF_WRITE
|
|
|
|
|
|
cdef extern from "includes/compat.h":
|
|
object Context_CopyCurrent()
|
|
int Context_Enter(object) except -1
|
|
int Context_Exit(object) except -1
|
|
|
|
void PyOS_BeforeFork()
|
|
void PyOS_AfterFork_Parent()
|
|
void PyOS_AfterFork_Child()
|
|
|
|
void _Py_RestoreSignals()
|