mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
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:
parent
cea5e50a9d
commit
c5cce64b7b
2 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in a new issue