Pybind11的坑

1. python GIL锁

如果c++线程回收的时候被卡死,需要在线程join()前是否GIL锁,如:


#include "pybind11/pybind11.h"
#include 

namespace py = pybind11;

py::gil_scoped_release release;
printf("gil scoped release ...\n");
this->outputThread.join();

你可能感兴趣的:(python,开发语言)