Join 1.9->1.0 to BRANCH-RELEASE-0_4_1.

Original commit message from CVS:
Join 1.9->1.0 to BRANCH-RELEASE-0_4_1.
This commit is contained in:
David Schleef 2002-09-20 22:31:55 +00:00
parent f0ea6c4b9f
commit 350742ebef

View file

@ -96,20 +96,21 @@ typedef cothread cothread_context;
#define do_cothreads_stackquery(stack,size) \
cothreads_alloc_thread_stack (stack, size)
#define do_cothread_switch(to) G_STMT_START{ \
cothread *from = cothread_self (); \
if (from == (to)) { \
GST_DEBUG (GST_CAT_COTHREAD_SWITCH, \
"trying to switch to the same cothread (%p), not allowed", \
(to)); \
g_warning ("trying to switch to the same cothread, not allowed"); \
} else { \
GST_INFO (GST_CAT_COTHREAD_SWITCH, \
"switching from cothread %p to cothread %p", from, (to)); \
cothread_switch (from, (to)); \
GST_INFO (GST_CAT_COTHREAD_SWITCH, "we're in cothread %p now", from); \
} \
}G_STMT_END
static void do_cothread_switch(cothread *to)
{
cothread *from = cothread_self ();
if (from == (to)) {
GST_DEBUG (GST_CAT_COTHREAD_SWITCH,
"trying to switch to the same cothread (%p), not allowed",
(to));
g_warning ("trying to switch to the same cothread, not allowed");
} else {
GST_INFO (GST_CAT_COTHREAD_SWITCH,
"switching from cothread %p to cothread %p", from, (to));
cothread_switch (from, (to));
GST_INFO (GST_CAT_COTHREAD_SWITCH, "we're in cothread %p now", from);
}
}
#define do_cothread_create(new_cothread, context, func, argc, argv) \
G_STMT_START{ \