move cothread_context definition over to the .c
authorErik Walthinsen <omega@temple-baptist.org>
Thu, 10 May 2001 22:35:50 +0000 (22:35 +0000)
committerErik Walthinsen <omega@temple-baptist.org>
Thu, 10 May 2001 22:35:50 +0000 (22:35 +0000)
Original commit message from CVS:
move cothread_context definition over to the .c

gst/cothreads.c
gst/cothreads.h

index af696ab..108fd87 100644 (file)
 #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
index c420111..d48b1ab 100644 (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);