jl777 7 years ago
parent
commit
6480dc68be
  1. 5
      iguana/exchanges/LP_ordermatch.c

5
iguana/exchanges/LP_ordermatch.c

@ -1111,13 +1111,11 @@ printf("dequeue %p funcid.%d aliceid.%llu iambob.%d\n",qtp,funcid,(long long)qtp
tp->Q = qtp->Q; tp->Q = qtp->Q;
if ( qtp->iambob == tp->iambob && qtp->pairstr[0] != 0 ) if ( qtp->iambob == tp->iambob && qtp->pairstr[0] != 0 )
safecopy(tp->pairstr,qtp->pairstr,sizeof(tp->pairstr)); safecopy(tp->pairstr,qtp->pairstr,sizeof(tp->pairstr));
printf("finished dequeue %p funcid.%d aliceid.%llu iambob.%d\n",qtp,funcid,(long long)qtp->aliceid,qtp->iambob); printf("finished dequeue %p funcid.%d aliceid.%llu iambob.%d/%d done.%u\n",qtp,funcid,(long long)qtp->aliceid,qtp->iambob,tp->iambob,tp->negotiationdone);
free(qtp); free(qtp);
if ( tp->negotiationdone != 0 ) if ( tp->negotiationdone != 0 )
continue; continue;
flag = 0; flag = 0;
if ( qtp->iambob == tp->iambob )
{
if ( tp->iambob == 0 ) if ( tp->iambob == 0 )
{ {
if ( funcid == LP_RESERVED ) if ( funcid == LP_RESERVED )
@ -1155,7 +1153,6 @@ printf("finished dequeue %p funcid.%d aliceid.%llu iambob.%d\n",qtp,funcid,(long
tp->lastprocessed = (uint32_t)time(NULL); tp->lastprocessed = (uint32_t)time(NULL);
nonz++; nonz++;
} }
} else printf("qtp->iambob.%d vs tp->iambob.%d\n",qtp->iambob,tp->iambob);
} }
if ( nonz == 0 ) if ( nonz == 0 )
sleep(1); sleep(1);

Loading…
Cancel
Save