Mercurial > pt1.oyama
diff recpt1/recpt1.c @ 6:d898fd27547f
cleanups
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 17 Feb 2009 11:39:26 +0900 |
parents | 97fd2315114e |
children | 407af34cfbd9 |
line wrap: on
line diff
--- a/recpt1/recpt1.c Tue Feb 17 05:58:36 2009 +0900 +++ b/recpt1/recpt1.c Tue Feb 17 11:39:26 2009 +0900 @@ -24,14 +24,15 @@ int fd; } thread_data; -// 周波数テーブル変換 +/* lookup frequency conversion table*/ ISDB_T_FREQ_CONV_TABLE * searchrecoff(char *channel) { int lp; for(lp = 0; isdb_t_conv_table[lp].parm_freq != NULL; lp++){ - // 文字列&長さ一致したら周波数テーブル番号を返却する + /* return entry number in the table when strings match and + * lengths are same. */ if((memcmp(isdb_t_conv_table[lp].parm_freq, channel, strlen(channel)) == 0) && (strlen(channel) == strlen(isdb_t_conv_table[lp].parm_freq))){ @@ -116,7 +117,7 @@ /* take buffer address */ buffer = p_queue->buffer[p_queue->out]; - // 次にデータを取り出す場所をインクリメント + /* move location marker to next position */ p_queue->out++; p_queue->out %= p_queue->size; @@ -131,7 +132,7 @@ return buffer; } -/* this function will be a writing thread */ +/* this function will be reader thread */ void * write_func(void *p) { @@ -371,7 +372,7 @@ /* close tuner */ close(fd); - /* wait reading thread */ + /* wait reader thread */ pthread_join(dequeue_threads, NULL); destroy_queue(p_queue);