| 52 | } |
| 53 | |
| 54 | void DescribeDeviceResources( Tr2DescribeDeviceResourceOperationAL operation ) |
| 55 | { |
| 56 | CcpAutoMutex lock( GetAllResourcesMutex() ); |
| 57 | auto& allResources = GetAllResources(); |
| 58 | for( auto it = begin( allResources ); it != end( allResources ); ++it ) |
| 59 | { |
| 60 | Tr2DeviceResourceDescriptionAL desc; |
| 61 | if( ( *it )->IsResourceValid() ) |
| 62 | { |
| 63 | ( *it )->Describe( desc ); |
| 64 | ( *operation )( ( *it )->GetResourceMemoryClass(), desc ); |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | void DestroyDeviceResources( Tr2ALMemoryTypes memoryTypes ) |
| 70 | { |
no test coverage detected