| 331 | } |
| 332 | |
| 333 | clfftStatus FFTRepo::getPlan( clfftPlanHandle plHandle, FFTPlan*& fftPlan, lockRAII*& planLock ) |
| 334 | { |
| 335 | scopedLock sLock( lockRepo, _T( "getPlan" ) ); |
| 336 | |
| 337 | // First, check if we have already created a plan with this exact same FFTPlan |
| 338 | repoPlansType::iterator iter = repoPlans.find( plHandle ); |
| 339 | if( iter == repoPlans.end( ) ) |
| 340 | return CLFFT_INVALID_PLAN; |
| 341 | |
| 342 | // If plan is valid, return fill out the output pointers |
| 343 | fftPlan = iter->second.first; |
| 344 | planLock = iter->second.second; |
| 345 | |
| 346 | return CLFFT_SUCCESS; |
| 347 | } |
| 348 | |
| 349 | clfftStatus FFTRepo::deletePlan( clfftPlanHandle* plHandle ) |
| 350 | { |
no outgoing calls
no test coverage detected