[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: C++ and threading howto for linux dev



ga wrote:

> 
> Check out these ones:
>
http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/thread_2thread_8cc-example.html#_a11
>
http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/thread_2dispatcher_8cc-example.html#_a0
> 
> Doc:
>
http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/classGlib_1_1Thread.html
> 

Thanks a lot ga. So you mean using the Glib classes. I had a look ... I can
include it in my testing list :-)

It also links to pthread

bash$> ldd /usr/lib/libgtkmm-2.4.so.1.0.30
        linux-gate.so.1 =>  (0xb8007000)
        libgdkmm-2.4.so.1 => /usr/lib/libgdkmm-2.4.so.1 (0xb7c65000)
....
        libpthread.so.0 => /lib/i686/cmov/libpthread.so.0

I bet qt is also using pthread

So it's better to access pthread myself. The advantage of using the above
and not pthread is that everything has been packed in a class already.

The above examples are still very useful to give an idea of the
implementation logic.

Thanks and kind regards



Reply to: