fflush
This commit is contained in:
parent
7fde9c81b5
commit
6aa55f8195
1 changed files with 6 additions and 0 deletions
6
csdr.c
6
csdr.c
|
@ -134,6 +134,12 @@ int bigbufs = 0;
|
||||||
#define YIELD_EVERY_N_TIMES 3
|
#define YIELD_EVERY_N_TIMES 3
|
||||||
//#define TRY_YIELD if(++yield_counter%YIELD_EVERY_N_TIMES==0) sched_yield()
|
//#define TRY_YIELD if(++yield_counter%YIELD_EVERY_N_TIMES==0) sched_yield()
|
||||||
#define TRY_YIELD
|
#define TRY_YIELD
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
#pragma message "we go the cyg way"
|
||||||
|
#undef TRY_YIELD
|
||||||
|
int flush_cntr = 0;
|
||||||
|
#define TRY_YIELD fflush(stdout); sched_yield()
|
||||||
|
#endif
|
||||||
//unsigned yield_counter=0;
|
//unsigned yield_counter=0;
|
||||||
|
|
||||||
int badsyntax(char* why)
|
int badsyntax(char* why)
|
||||||
|
|
Loading…
Reference in a new issue