Explorar o código

Expose a routine to reset the counts of precomputed values used

Ian Goldberg %!s(int64=2) %!d(string=hai) anos
pai
achega
ee02e44109
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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