Mercurial > pt1
comparison recpt1/recpt1.c @ 110:d89f0da0a7e4
do not stuck on split_select() more than 4 sec.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sun, 07 Mar 2010 20:10:18 +0900 |
parents | 0a9406f92f32 |
children | a910b49dfbee |
comparison
equal
deleted
inserted
replaced
109:8a2a032bfa50 | 110:d89f0da0a7e4 |
---|---|
359 } | 359 } |
360 else if(split_select_finish != TSS_SUCCESS) { | 360 else if(split_select_finish != TSS_SUCCESS) { |
361 /* $BJ,N%BP>](BPID$B$,40A4$KCj=P$G$-$k$^$G=PNO$7$J$$(B | 361 /* $BJ,N%BP>](BPID$B$,40A4$KCj=P$G$-$k$^$G=PNO$7$J$$(B |
362 * 1$BICDxEYM>M5$r8+$k$H$$$$$+$b(B | 362 * 1$BICDxEYM>M5$r8+$k$H$$$$$+$b(B |
363 */ | 363 */ |
364 time_t cur_time; | |
365 time(&cur_time); | |
366 if(cur_time - data->start_time > 4) { | |
367 use_splitter = FALSE; | |
368 goto fin; | |
369 } | |
364 break; | 370 break; |
365 } | 371 } |
366 } | 372 } |
367 /* $BJ,N%BP>]0J30$r$U$k$$Mn$H$9(B */ | 373 /* $BJ,N%BP>]0J30$r$U$k$$Mn$H$9(B */ |
368 code = split_ts(splitter, &buf, &splitbuf); | 374 code = split_ts(splitter, &buf, &splitbuf); |