mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-28 06:42:16 +00:00
readable cleanups
Original commit message from CVS: readable cleanups
This commit is contained in:
parent
c1e2b0009b
commit
76d31f5af1
1 changed files with 9 additions and 5 deletions
|
@ -567,7 +567,8 @@ cothread_switch (cothread_state * thread)
|
||||||
|
|
||||||
|
|
||||||
/* find the number of the thread to switch to */
|
/* find the number of the thread to switch to */
|
||||||
GST_INFO (GST_CAT_COTHREAD_SWITCH, "switching from cothread #%d to cothread #%d",
|
GST_INFO (GST_CAT_COTHREAD_SWITCH,
|
||||||
|
"switching from cothread #%d to cothread #%d",
|
||||||
ctx->current, thread->threadnum);
|
ctx->current, thread->threadnum);
|
||||||
ctx->current = thread->threadnum;
|
ctx->current = thread->threadnum;
|
||||||
|
|
||||||
|
@ -577,12 +578,15 @@ cothread_switch (cothread_state * thread)
|
||||||
#endif
|
#endif
|
||||||
enter = setjmp (current->jmp);
|
enter = setjmp (current->jmp);
|
||||||
if (enter != 0) {
|
if (enter != 0) {
|
||||||
GST_DEBUG (GST_CAT_COTHREADS, "enter thread #%d %d %p<->%p (%d) %p", current->threadnum, enter,
|
GST_DEBUG (GST_CAT_COTHREADS,
|
||||||
current->sp, current->top_sp, (char*)current->top_sp - (char*)current->sp, current->jmp);
|
"enter thread #%d %d %p<->%p (%d) %p",
|
||||||
|
current->threadnum, enter, current->sp, current->top_sp,
|
||||||
|
(char*) current->top_sp - (char*) current->sp, current->jmp);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GST_DEBUG (GST_CAT_COTHREADS, "exit thread #%d %d %p<->%p (%d) %p", current->threadnum, enter,
|
GST_DEBUG (GST_CAT_COTHREADS, "exit thread #%d %d %p<->%p (%d) %p",
|
||||||
current->sp, current->top_sp, (char*)current->top_sp - (char*)current->sp, current->jmp);
|
current->threadnum, enter, current->sp, current->top_sp,
|
||||||
|
(char*) current->top_sp - (char*) current->sp, current->jmp);
|
||||||
enter = 1;
|
enter = 1;
|
||||||
|
|
||||||
if (current->flags & COTHREAD_DESTROYED) {
|
if (current->flags & COTHREAD_DESTROYED) {
|
||||||
|
|
Loading…
Reference in a new issue