Changeset 954577b9 for libwandio


Ignore:
Timestamp:
02/28/13 10:23:19 (9 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
c5ff469
Parents:
05f2718
Message:
  • Tidy up some of the threading data structures in libwandio whenever we exit
Location:
libwandio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libwandio/ior-thread.c

    r60f3c4c r954577b9  
    266266        /* Wait for the thread to exit */
    267267        pthread_join(DATA(io)->producer, NULL);
     268       
     269        pthread_mutex_destroy(&DATA(io)->mutex);
     270        pthread_cond_destroy(&DATA(io)->space_avail);
     271        pthread_cond_destroy(&DATA(io)->data_ready);
     272       
    268273        free(DATA(io)->buffer);
    269274        free(DATA(io));
  • libwandio/iow-thread.c

    r60f3c4c r954577b9  
    246246        pthread_mutex_unlock(&DATA(iow)->mutex);
    247247        pthread_join(DATA(iow)->consumer,NULL);
     248       
     249        pthread_mutex_destroy(&DATA(iow)->mutex);
     250        pthread_cond_destroy(&DATA(iow)->data_ready);
     251        pthread_cond_destroy(&DATA(iow)->space_avail);
     252       
    248253        free(iow->data);
    249254        free(iow);
Note: See TracChangeset for help on using the changeset viewer.