IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 22423


Ignore:
Timestamp:
Feb 24, 2009, 8:35:55 AM (17 years ago)
Author:
eugene
Message:

need to set stream file before unlocking mutex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/gprint.c

    r18426 r22423  
    153153    if (streams[i][0].file == stream[0].file) Nmatch ++;
    154154  }
    155   pthread_mutex_unlock (&init_stream_mutex);
    156 
    157155  if (Nmatch == 0) {
     156    // fprintf (stderr, "closed %x, opened %x (%s) -- thread %d\n", stream[0].file, file, stream[0].name, stream[0].thread);
    158157    fflush (stream[0].file);
    159158    fclose (stream[0].file);
    160159  }
    161 
    162160  stream[0].file = file;
     161  pthread_mutex_unlock (&init_stream_mutex);
     162
    163163  return;
    164164}
Note: See TracChangeset for help on using the changeset viewer.