mirror of
https://github.com/encryptogroup/PSI.git
synced 2024-03-22 13:30:44 +08:00
Fix for multi-threading
This commit is contained in:
parent
c0a3c409b2
commit
f9de56be8d
|
@ -20,7 +20,7 @@ int32_t benchroutine(int32_t argc, char** argv) {
|
|||
string address = "127.0.0.1";
|
||||
uint16_t port=7766;
|
||||
timeval begin, end;
|
||||
vector<CSocket> sockfd(ntasks);
|
||||
vector<CSocket> sockfd;
|
||||
field_type ftype = ECC_FIELD;
|
||||
role_type role = (role_type) 0;
|
||||
uint64_t bytes_sent=0, bytes_received=0, mbfac;
|
||||
|
@ -35,6 +35,7 @@ int32_t benchroutine(int32_t argc, char** argv) {
|
|||
&address, &port, &ntasks, &protocol, &nclients, &epsilon, &cardinality, &ftype,
|
||||
&detailed_timings);
|
||||
|
||||
sockfd.resize(ntasks);
|
||||
if(role == SERVER) {
|
||||
if(protocol == TTP) {
|
||||
ntasks = nclients;
|
||||
|
|
Loading…
Reference in New Issue
Block a user