Improve ANSCV
This commit is contained in:
@@ -155,7 +155,9 @@ namespace ANSCENTER
|
||||
std::recursive_mutex _mutex;
|
||||
|
||||
//std::once_flag licenseOnceFlag; // For one-time license check
|
||||
bool _licenseValid = false;
|
||||
// Atomic so lock-free methods (ImageResize, ImageResizeWithRatio,
|
||||
// MatToBinaryData, EncodeJpegString) can read it without _mutex.
|
||||
std::atomic<bool> _licenseValid{ false };
|
||||
public:
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user