Re: C++ and threading howto for linux dev
On Mon, 10 Aug 2009 19:09:05 +0200
Emanoil Kotsev <deloptes@yahoo.com> wrote:
> Hi, perhaps it's OT but still the debian list is the best one (my subjective
> opinion), so I dear to ask here.
>
> I'm willing to build an app that starts 3 threads, especially (soap client,
> server from libcsoap and terminal), so I couldn't manage to do the job in
> C++, because they it lacks native threading support. PThread lib is C.
>
> Does any one know a good howto (working one - tested hin/herself)
>
> I tried a bunch of junk over the weekend and could make it
>
> I also couldn't find a user-list for libcsoap, but the question is a general
> one - HOW THE H**L ARE YOU WRITING threaded apps in C++. It shouldn't be
> that hard - or is it?
>
> Thanks in advance
>
>
c is a subset of c++ so you can use the c api inside c++. Another option is to use a wrapper library.
If you want cross platform c++ and you are not using a specific gui library (qt or gtk) then:
boost thread is one option (package libboost-thread1.38-dev in unstable)
I also worked with wxwidgets which is a cross platform gui library that includes some extra stuff
qt probably also has something, don't know if gtk covers such stuff.
Reply to: