mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
move cothread_context definition over to the .c
Original commit message from CVS: move cothread_context definition over to the .c
This commit is contained in:
parent
facc9acb7a
commit
4cbdcef47f
2 changed files with 8 additions and 6 deletions
|
@ -41,6 +41,14 @@
|
|||
#define STACK_SIZE 0x200000
|
||||
|
||||
|
||||
struct _cothread_context {
|
||||
cothread_state *threads[COTHREAD_MAXTHREADS];
|
||||
int nthreads;
|
||||
int current;
|
||||
GHashTable *data;
|
||||
};
|
||||
|
||||
|
||||
pthread_key_t _cothread_key = -1;
|
||||
|
||||
/* Disablig this define allows you to shut off a few checks in
|
||||
|
|
|
@ -53,12 +53,6 @@ struct _cothread_state {
|
|||
jmp_buf jmp;
|
||||
};
|
||||
|
||||
struct _cothread_context {
|
||||
cothread_state *threads[COTHREAD_MAXTHREADS];
|
||||
int nthreads;
|
||||
int current;
|
||||
GHashTable *data;
|
||||
};
|
||||
|
||||
cothread_context* cothread_init();
|
||||
cothread_state* cothread_create (cothread_context *ctx);
|
||||
|
|
Loading…
Reference in a new issue