mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
7f41ebff13
commit
db0325ee37
1 changed files with 2 additions and 2 deletions
|
@ -36,10 +36,10 @@
|
||||||
#include "gstarch.h"
|
#include "gstarch.h"
|
||||||
|
|
||||||
|
|
||||||
#define COTHREAD_STACKSIZE 32768
|
|
||||||
#define COTHREAD_MAXTHREADS 64
|
|
||||||
#define STACK_SIZE 0x200000
|
#define STACK_SIZE 0x200000
|
||||||
|
|
||||||
|
#define COTHREAD_MAXTHREADS 64
|
||||||
|
#define COTHREAD_STACKSIZE (STACK_SIZE/COTHREAD_MAXTHREADS)
|
||||||
|
|
||||||
struct _cothread_context {
|
struct _cothread_context {
|
||||||
cothread_state *threads[COTHREAD_MAXTHREADS];
|
cothread_state *threads[COTHREAD_MAXTHREADS];
|
||||||
|
|
Loading…
Reference in a new issue