changeset 27896:4c2232462353

100l, stream->cache_pid can not be used directly in pthread_create, it has the wrong type. Luckily we currently do not need the value anyway.
author reimar
date Sat, 15 Nov 2008 19:43:39 +0000
parents 69b4b8d73b5e
children b380685ef564
files stream/cache2.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/cache2.c	Sat Nov 15 19:14:09 2008 +0000
+++ b/stream/cache2.c	Sat Nov 15 19:43:39 2008 +0000
@@ -349,7 +349,11 @@
 #elif defined(__OS2__)
     stream->cache_pid = _beginthread( ThreadProc, NULL, 256 * 1024, s );
 #else
-    pthread_create(&stream->cache_pid, NULL, ThreadProc, s);
+    {
+    pthread_t tid;
+    pthread_create(&tid, NULL, ThreadProc, s);
+    stream->cache_pid = 1;
+    }
 #endif
 #endif
     // wait until cache is filled at least prefill_init %