Modify according to @alalek.

This commit is contained in:
peng xiao 2013-09-03 09:31:13 +08:00
parent 3c2a8912ee
commit 7b3e3f69fb

View File

@ -81,11 +81,14 @@ static Mutex cs;
void cv::ocl::clBlasSetup()
{
AutoLock al(cs);
if(!clBlasInitialized)
{
openCLSafeCall(clAmdBlasSetup());
clBlasInitialized = true;
AutoLock al(cs);
if(!clBlasInitialized)
{
openCLSafeCall(clAmdBlasSetup());
clBlasInitialized = true;
}
}
}