[xiph-cvs] cvs commit: ices/src stream.c

Karl Heyes karl at xiph.org
Mon Jan 12 14:53:09 PST 2004



karl        04/01/12 17:53:08

  Modified:    src      stream.c
  Log:
  avoid use of sleep in thread, uses SIGALRM

Revision  Changes    Path
1.32      +2 -2      ices/src/stream.c

Index: stream.c
===================================================================
RCS file: /usr/local/cvsroot/ices/src/stream.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- stream.c	22 Dec 2003 14:01:09 -0000	1.31
+++ stream.c	12 Jan 2004 22:53:07 -0000	1.32
@@ -1,7 +1,7 @@
 /* stream.c
  * - Core streaming functions/main loop.
  *
- * $Id: stream.c,v 1.31 2003/12/22 14:01:09 karl Exp $
+ * $Id: stream.c,v 1.32 2004/01/12 22:53:07 karl Exp $
  *
  * Copyright (c) 2001 Michael Smith <msmith at labyrinth.net.au>
  *
@@ -326,7 +326,7 @@
                                 stream->buffer_failures = MAX_ERRORS+1; 
                             }
                             else /* Don't try again too soon */
-                                sleep(stream->reconnect_delay); 
+                                thread_sleep (stream->reconnect_delay*1000000); 
                         }
                     }
                     stream->skip = 0;

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list