| 99 | // ----------------------------------------------------------------------------- |
| 100 | |
| 101 | int |
| 102 | ErasureCodeIsaTableCache::getDecodingTableCacheSize(int matrixtype) |
| 103 | { |
| 104 | std::lock_guard lock{codec_tables_guard}; |
| 105 | if (decoding_tables[matrixtype]) |
| 106 | return decoding_tables[matrixtype]->size(); |
| 107 | else |
| 108 | return -1; |
| 109 | } |
| 110 | |
| 111 | // ----------------------------------------------------------------------------- |
| 112 |