Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
db2a693ac0
  1. 9
      iguana/main.c

9
iguana/main.c

@ -326,6 +326,8 @@ void sigcontinue_func() { printf("\nSIGCONT\n"); signal(SIGCONT,sigcontinue_func
void mainloop(struct supernet_info *myinfo) void mainloop(struct supernet_info *myinfo)
{ {
int32_t i,flag; struct iguana_info *coin; struct iguana_bundle *bp; struct iguana_helper *ptr; int32_t i,flag; struct iguana_info *coin; struct iguana_bundle *bp; struct iguana_helper *ptr;
sleep(3);
printf("mainloop\n");
while ( 1 ) while ( 1 )
{ {
flag = 0; flag = 0;
@ -346,13 +348,6 @@ void mainloop(struct supernet_info *myinfo)
iguana_jsonQ(); iguana_jsonQ();
if ( flag == 0 ) if ( flag == 0 )
{ {
/*if ( (ptr= queue_dequeue(&bundlesQ,0)) != 0 )
{
if ( ptr->bp != 0 && ptr->coin != 0 )
flag += iguana_bundleiters(ptr->coin,ptr->bp,ptr->timelimit);
myfree(ptr,ptr->allocsize);
}
else*/
pangea_queues(SuperNET_MYINFO(0)); pangea_queues(SuperNET_MYINFO(0));
usleep(1000000); usleep(1000000);
} }

Loading…
Cancel
Save