mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
Small cleanup
Original commit message from CVS: Small cleanup
This commit is contained in:
parent
cc59aa1770
commit
a92661f761
1 changed files with 6 additions and 5 deletions
|
@ -81,16 +81,17 @@ static GPrivate *_cothread_ctx_key;
|
|||
cothread_context *
|
||||
cothread_context_init (void)
|
||||
{
|
||||
/*
|
||||
* initalize the whole of the cothreads context
|
||||
*/
|
||||
cothread_context *ctx;
|
||||
|
||||
|
||||
/* if there already is a cotread context for this thread,
|
||||
* just return it */
|
||||
ctx = g_private_get (_cothread_ctx_key);
|
||||
if(ctx) return ctx;
|
||||
if (ctx)
|
||||
return ctx;
|
||||
|
||||
/*
|
||||
* initalize the whole of the cothreads context
|
||||
*/
|
||||
ctx = (cothread_context *) g_malloc (sizeof (cothread_context));
|
||||
|
||||
/* we consider the initiating process to be cothread 0 */
|
||||
|
|
Loading…
Reference in a new issue