| View previous topic :: View next topic |
| Author |
Message |
laurentoget@gmail.com Guest
|
Posted: Tue Oct 04, 2005 1:47 pm Post subject: multi-platform thread API wrapper |
|
|
I am familiar with ACE but a bit daunted by its size. Does anybody know
whether there are other well established wrapper libraries providing an
abstraction on top of the various threads API (POSIX, Windows) and the
associated synchronization facilities?
Thank You,
Laurent Oget
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|
| Back to top |
|
 |
Anthony Williams Guest
|
Posted: Tue Oct 04, 2005 6:49 pm Post subject: Re: multi-platform thread API wrapper |
|
|
"laurentoget (AT) gmail (DOT) com" <laurentoget (AT) gmail (DOT) com> writes:
| Quote: | I am familiar with ACE but a bit daunted by its size. Does anybody know
whether there are other well established wrapper libraries providing an
abstraction on top of the various threads API (POSIX, Windows) and the
associated synchronization facilities?
|
boost (www.boost.org) provides a threading library, which currently runs on
MacOS, systems that support pthreads, and Windows.
Anthony
--
Anthony Williams
Software Developer
Just Software Solutions Ltd
http://www.justsoftwaresolutions.co.uk
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|
| Back to top |
|
 |
ronakpatel81@gmail.com Guest
|
Posted: Tue Oct 04, 2005 6:50 pm Post subject: Re: multi-platform thread API wrapper |
|
|
boost threads are fairly popular
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|
| Back to top |
|
 |
Robert Kindred Guest
|
Posted: Tue Oct 04, 2005 6:51 pm Post subject: Re: multi-platform thread API wrapper |
|
|
<laurentoget (AT) gmail (DOT) com> wrote
| Quote: | I am familiar with ACE but a bit daunted by its size. Does anybody know
whether there are other well established wrapper libraries providing an
abstraction on top of the various threads API (POSIX, Windows) and the
associated synchronization facilities?
Thank You,
Laurent Oget
|
ACE is the only one that I know of. If you want to go to a lower level,
you can get the POSIX routines for Windows by using the pthreads-win32
library, downloadable from RedHat. You can also swipe things out of ACE to
make smaller libaries, since it is open source. The POSA2 book
("PATTERN-ORIENTED SOFTWARE ARCHITECTURE, Volume 2) by Schmidt, et al. has
most of the design patterns for ACE.
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|
| Back to top |
|
 |
Mark Van Peteghem Guest
|
Posted: Tue Oct 04, 2005 6:58 pm Post subject: Re: multi-platform thread API wrapper |
|
|
[email]laurentoget (AT) gmail (DOT) com[/email] wrote:
| Quote: | I am familiar with ACE but a bit daunted by its size. Does anybody know
whether there are other well established wrapper libraries providing an
abstraction on top of the various threads API (POSIX, Windows) and the
associated synchronization facilities?
IIRC ACE is a portable communication library, so it does a lot more |
than just threading. I know of two libraries that wrap both POSIX and
Win32 threading, Boost and wxWidgets. wxWidgets is also a lot more
than just threading, and you need to compile the whole thing. With
Boost however it should be easy to use just the threads without
bothering about the rest.
--
Mark dot Van dot Peteghem at q-mentum dot com
http://www.q-mentum.com -- easier and more powerful unit testing
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|
| Back to top |
|
 |
Valentin Samko Guest
|
Posted: Thu Oct 06, 2005 8:42 am Post subject: Re: multi-platform thread API wrapper |
|
|
[email]laurentoget (AT) gmail (DOT) com[/email] wrote:
| Quote: | I am familiar with ACE but a bit daunted by its size. Does anybody know
whether there are other well established wrapper libraries providing an
abstraction on top of the various threads API (POSIX, Windows) and the
associated synchronization facilities?
|
Try Boost.Thread. It provides a very good C++ interface for dealing with
threads. The only problem is that it is currently being rewritten and
there are serious problems with the current implementation of the
read-write lock.
--
Valentin Samko - http://val.samko.info
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|
| Back to top |
|
 |
Markus.Elfring@web.de Guest
|
Posted: Fri Oct 07, 2005 1:51 pm Post subject: Re: multi-platform thread API wrapper |
|
|
| Quote: | I am familiar with ACE but a bit daunted by its size. Does anybody know
whether there are other well established wrapper libraries providing an
abstraction on top of the various threads API (POSIX, Windows) and the
associated synchronization facilities?
|
Would you like to look at this well-known article for design
alternatives?
http://en.wikipedia.org/wiki/List_of_multi-threading_libraries
Regards,
Markus
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|
| Back to top |
|
 |
Stepan Seycek Guest
|
|
| Back to top |
|
 |
|