fixed cothread_current_main so it, um, works.

Original commit message from CVS:
fixed cothread_current_main so it, um, works.
This commit is contained in:
Erik Walthinsen 2001-04-27 01:46:14 +00:00
parent cea5e50a9d
commit c5cce64b7b
2 changed files with 7 additions and 2 deletions

View file

@ -181,7 +181,12 @@ cothread_main(cothread_context *ctx)
return ctx->threads[0];
}
void
/**
* cothread_current)main:
*
* Returns: the #cothread_state of the main (0th) thread in the current pthread
*/
cothread_state*
cothread_current_main(void)
{
cothread_context *ctx = pthread_getspecific(_cothread_key);

View file

@ -90,6 +90,6 @@ gboolean cothread_trylock (cothread_state *thread);
void cothread_unlock (cothread_state *thread);
cothread_state* cothread_main (cothread_context *ctx);
void cothread_current_main (void);
cothread_state* cothread_current_main (void);
#endif /* __COTHREAD_H__ */