mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
ocl: process termination hung workaround
This commit is contained in:
@@ -1932,10 +1932,15 @@ struct Queue::Impl
|
||||
|
||||
~Impl()
|
||||
{
|
||||
if(handle)
|
||||
#ifdef _WIN32
|
||||
if (!cv::__termination)
|
||||
#endif
|
||||
{
|
||||
clFinish(handle);
|
||||
clReleaseCommandQueue(handle);
|
||||
if(handle)
|
||||
{
|
||||
clFinish(handle);
|
||||
clReleaseCommandQueue(handle);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user