Просмотр исходного кода

Expose a routine to reset the counts of precomputed values used

Ian Goldberg 2 лет назад
Родитель
Сommit
ee02e44109
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      mpcio.hpp

+ 8 - 0
mpcio.hpp

@@ -237,6 +237,14 @@ struct MPCPeerIO : public MPCIO {
         }
         os << "\n";
     }
+
+    void reset_precomp_stats()
+    {
+        for (size_t i=0; i<triples.size(); ++i) {
+            triples[i].reset_stats();
+            halftriples[i].reset_stats();
+        }
+    }
 };
 
 // A class to represent all of the server party's IO, either to