From db0325ee3789b4d763de50f50b1304af63581f6e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 4 Jun 2001 16:02:48 +0000 Subject: [PATCH] Use the STACKSIZE and number of cothreads to calculate the cothread stack space (easier to change the number of cothr... Original commit message from CVS: Use the STACKSIZE and number of cothreads to calculate the cothread stack space (easier to change the number of cothreads). --- gst/cothreads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/cothreads.c b/gst/cothreads.c index 304749e212..3f79101b5c 100644 --- a/gst/cothreads.c +++ b/gst/cothreads.c @@ -36,10 +36,10 @@ #include "gstarch.h" -#define COTHREAD_STACKSIZE 32768 -#define COTHREAD_MAXTHREADS 64 #define STACK_SIZE 0x200000 +#define COTHREAD_MAXTHREADS 64 +#define COTHREAD_STACKSIZE (STACK_SIZE/COTHREAD_MAXTHREADS) struct _cothread_context { cothread_state *threads[COTHREAD_MAXTHREADS];