[gst-devel] thread id in debugging

Thomas Vander Stichele thomas at apestaart.org
Fri Jul 9 03:16:01 CEST 2004


Hi,

> I don't like a way of using GPrivate because the debugging stuff is
> intended to be generally useful and not just in the gst thread case and
> such a solution would not work if an app ran its own threads (like rb
> does for example).

Are you sure it would not work in a general case ? If you look at the
code for g_thread_self, you see that this is exactly how it's
implemented.  So ...

> So if getpid() doesn't work with NPTL anymore, I think the best
> idea for now is to use g_print ("%p", g_thread_self()) for now.

... if g_thread_self is ok, I don't see why writing something similar
called gst_thread_id would fail.

Thomas


Dave/Dina : future TV today ! - http://www.davedina.org/
<-*- thomas (dot) apestaart (dot) org -*->
Surprise sometimes
will come around
I will surprise you sometime
I'll come around
<-*- thomas (at) apestaart (dot) org -*->
URGent, best radio on the net - 24/7 ! - http://urgent.fm/






More information about the gstreamer-devel mailing list