Mercurial > hg > Members > masakoha > testcode
changeset 12:47f90873a72c
add comment
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 03 Jan 2014 21:11:11 +0900 |
parents | f522b6bf6789 |
children | 753289c70eb4 |
files | parallel_processing/ppb_data_shared/ppb_data_shared.cc |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/parallel_processing/ppb_data_shared/ppb_data_shared.cc Fri Jan 03 21:09:01 2014 +0900 +++ b/parallel_processing/ppb_data_shared/ppb_data_shared.cc Fri Jan 03 21:11:11 2014 +0900 @@ -55,6 +55,7 @@ /* wait for running all thread */ for (i = 0; i < THREAD_NUM; i++) pthread_join(handle[i], NULL); + /* destroy mutex*/ pthread_mutex_destroy(&mutex); for (i = 0; i < DATA_NUM; i++) printf("data%d : %d\n", i, data[i]);