Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
688a6bec70
  1. 6
      iguana/main.c

6
iguana/main.c

@ -422,19 +422,25 @@ void mainloop(struct supernet_info *myinfo)
counter++;
coin = 0;
depth = 0;
if ( 0 )
{
HASH_ITER(hh,myinfo->allcoins,coin,tmp)
{
portable_mutex_lock(&coin->allcoins_mutex);
stack[depth++] = &coin->allcoins_mutex;
}
}
//printf("check jsonQ\n");
while ( iguana_jsonQ() != 0 )
;
if ( 0 )
{
if ( depth > 0 )
{
for (i=depth-1; i>=0; i--)
portable_mutex_unlock(stack[i]);
}
}
lastmilli = OS_milliseconds();
}
usleep(30000);

Loading…
Cancel
Save