[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_bittybits.C,1.8,
From: |
Philip S Tellis |
Subject: |
Re: [Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_bittybits.C,1.8,1.9 |
Date: |
Tue, 25 Mar 2003 18:24:43 +0530 (IST) |
On Tue, 25 Mar 2003, Colin Leroy <address@hidden> wrote:
> + do
> {
> + should_terminate = 0;
> if(read(sock, &c, 1)<1)
> {
> if (errno == EAGAIN) {
> @@ -33,7 +44,13 @@
> for (int i=0; i<10000000;i++)
> j=i;
> #else
> - nanosleep(&delay, NULL);
> + printf("EAGAIN, sleeping\n");
^^^^^^^^^^^^^^^^^^^^^^^^^^
anyway, what i normally do for this case is this:
do {
len = read(sock, &c, 1);
} while(len == -1 && errno == EAGAIN);
> + if(poll(&pfd,1,1000)==0) {
> pos++;
> +#ifndef __WINGW32__
^^^^^^^
MINGW32 not WINGW32
> + if(poll(&pfd,1,0)==0) {
> + printf("nothing available sleeping\n");
> + should_terminate=1;
> + poll(&pfd,1,1000);
> + }
> +#endif
> }
> -
> +#ifndef __WINGW32__
^^^^^^^
--
Happiness isn't something you experience; it's something you remember.
-- Oscar Levant
- Prev by Date:
[Ayttm-commits] CVS: ayttm ChangeLog,1.414,1.415 configure.in,1.409,1.410
- Next by Date:
[Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_bittybits.C,1.9,1.10
- Previous by thread:
[Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_bittybits.C,1.8,1.9
- Next by thread:
Re: [Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_bittybits.C,1.8,1.9
- Index(es):