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:
Erik Walthinsen 2001-05-10 22:35:50 +00:00
parent facc9acb7a
commit 4cbdcef47f
2 changed files with 8 additions and 6 deletions

View file

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

View file

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