Modify according to @alalek.
This commit is contained in:
parent
3c2a8912ee
commit
7b3e3f69fb
@ -80,6 +80,8 @@ static bool clBlasInitialized = false;
|
||||
static Mutex cs;
|
||||
|
||||
void cv::ocl::clBlasSetup()
|
||||
{
|
||||
if(!clBlasInitialized)
|
||||
{
|
||||
AutoLock al(cs);
|
||||
if(!clBlasInitialized)
|
||||
@ -88,6 +90,7 @@ void cv::ocl::clBlasSetup()
|
||||
clBlasInitialized = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void cv::ocl::clBlasTeardown()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user