Re: C++ and threading howto for linux dev

2009-08-18 Thread Daniel Burrows
On Tue, Aug 11, 2009 at 02:47:51PM -0500, "Boyd Stephen Smith Jr." was heard to say: > Since GLib, Qt Core, LibBoost, and "C++1x" all provide C++ > bindings/abstractions of the threads, I would not write your own. I can't > recommend for or against Boost, but one of those 4 should fit your pro

Re: C++ and threading howto for linux dev

2009-08-11 Thread Boyd Stephen Smith Jr.
In , Emanoil Kotsev wrote: >Boyd Stephen Smith Jr. wrote: >> In <2009082355.2e38a...@vivalunalitshi.luna.local>, Micha Feigin >> wrote: >>>c is a subset of c++ so you can use the c api inside c++. >> >> Not entirely true. >> >> There is a common subset of C and C++ and it includes the majority

Re: C++ and threading howto for linux dev

2009-08-11 Thread Emanoil Kotsev
Boyd Stephen Smith Jr. wrote: > In <2009082355.2e38a...@vivalunalitshi.luna.local>, Micha Feigin > wrote: >>c is a subset of c++ so you can use the c api inside c++. > > Not entirely true. ISO 9899:1999 (C Programming Language) has a number of > types that are not in ISO 14882:2003 (C++ Prog

Re: C++ and threading howto for linux dev

2009-08-11 Thread Emanoil Kotsev
Micha Feigin wrote: > On Mon, 10 Aug 2009 15:09:40 -0500 > "Boyd Stephen Smith Jr." wrote: > > One way to do it by the way if you want them encapsulated inside a class > is to use static member functions (they are actually just standard > function with a limited scope). Then you don't need to d

Re: C++ and threading howto for linux dev

2009-08-11 Thread Boyd Stephen Smith Jr.
In <2009082355.2e38a...@vivalunalitshi.luna.local>, Micha Feigin wrote: >c is a subset of c++ so you can use the c api inside c++. Not entirely true. ISO 9899:1999 (C Programming Language) has a number of types that are not in ISO 14882:2003 (C++ Programming Language), at least. Also, the

Re: C++ and threading howto for linux dev

2009-08-11 Thread Micha Feigin
On Tue, 11 Aug 2009 01:55:00 +0200 Emanoil Kotsev wrote: > 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.

Re: C++ and threading howto for linux dev

2009-08-11 Thread Micha Feigin
On Mon, 10 Aug 2009 15:09:40 -0500 "Boyd Stephen Smith Jr." wrote: > In , Emanoil Kotsev wrote: > >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 thread

Re: C++ and threading howto for linux dev

2009-08-11 Thread Micha Feigin
On Mon, 10 Aug 2009 19:09:05 +0200 Emanoil Kotsev 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 co

Re: C++ and threading howto for linux dev

2009-08-10 Thread Emanoil Kotsev
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/ht

Re: C++ and threading howto for linux dev

2009-08-10 Thread Emanoil Kotsev
Eric Meijer wrote: > Emanoil Kotsev wrote: >> Thanks Eric >> >> I was also thinking to use the boost package. I don't like it's heavy and >> my app would depend on it too. >> >> > As mentioned by Roger Leigh, you only really "pay" for what you are using. > Why are you worried by the dependence

Re: C++ and threading howto for linux dev

2009-08-10 Thread Eric Meijer
Emanoil Kotsev wrote: Thanks Eric I was also thinking to use the boost package. I don't like it's heavy and my app would depend on it too. As mentioned by Roger Leigh, you only really "pay" for what you are using. Why are you worried by the dependence on boost? What I like about it is that

Re: C++ and threading howto for linux dev

2009-08-10 Thread Roger Leigh
On Mon, Aug 10, 2009 at 07:09:05PM +0200, Emanoil Kotsev wrote: > 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? Just use pthreads directly. Boost threads is also an op

Re: C++ and threading howto for linux dev

2009-08-10 Thread ga
Hi Emanoil, On Mon, Aug 10, 2009 at 07:09:05PM +0200, Emanoil Kotsev 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

Re: C++ and threading howto for linux dev

2009-08-10 Thread Boyd Stephen Smith Jr.
In , Emanoil Kotsev wrote: >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. I've always been able to use the pthread li

Re: C++ and threading howto for linux dev

2009-08-10 Thread Emanoil Kotsev
Eric Meijer wrote: >> > Boost threads is what I use (debian package libboost-thread-dev). It > builds on pthreads, and is part of the high quality boost library for > C++, which is a kind of testbed for libraries to be added to the C++ > standard library. You may want to browse boost for mo

Re: C++ and threading howto for linux dev

2009-08-10 Thread Emanoil Kotsev
Hugo Vanwoerkom wrote: > I use QT and their examples: they are the greatest! > http://packages.debian.org/sid/qt4-doc-html > > Hugo Hi, I'm not looking for a graphics implementation of threads but a way to run threads from pure C++ code. What should I do with QT? I make my app depending on somet

Re: C++ and threading howto for linux dev

2009-08-10 Thread Eric Meijer
Emanoil Kotsev 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 t

Re: C++ and threading howto for linux dev

2009-08-10 Thread Hugo Vanwoerkom
Emanoil Kotsev 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 t