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).
This commit is contained in:
Wim Taymans 2001-06-04 16:02:48 +00:00
parent 7f41ebff13
commit db0325ee37

View file

@ -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];