mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
8f3b876ee6
ContextImpl::currentContext contains a reference to one of the DeviceInfoImpl objects from: static std::vector<DeviceInfoImpl> global_devices; ContextImpl::currentContext is destroyed in the destructor for the statically defined object __module, and relies on its DeviceInfoImpl reference to query some hardware features while being destroyed. This means that we need to ensure that the global_devices vector is destroyed affter __module, otherwise ContextImpl::currentContext's DeviceInfoImpl reference will no longer be valid when __module is destroyed. Since these variables are all confined to a single compilation unit, they will be destruct from bottom to top, so we need to make sure that __module is the bottom definition so it can be destroyed first. |
||
---|---|---|
.. | ||
androidcamera | ||
calib3d | ||
contrib | ||
core | ||
dynamicuda | ||
features2d | ||
flann | ||
gpu | ||
highgui | ||
imgproc | ||
java | ||
legacy | ||
ml | ||
nonfree | ||
objdetect | ||
ocl | ||
photo | ||
python | ||
stitching | ||
superres | ||
ts | ||
video | ||
videostab | ||
viz | ||
world | ||
CMakeLists.txt | ||
refman.rst.in |