C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

multi-platform thread API wrapper

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated)
View previous topic :: View next topic  
Author Message
laurentoget@gmail.com
Guest





PostPosted: Tue Oct 04, 2005 1:47 pm    Post subject: multi-platform thread API wrapper Reply with 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


[ 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





PostPosted: Tue Oct 04, 2005 6:49 pm    Post subject: Re: multi-platform thread API wrapper Reply with quote



"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





PostPosted: Tue Oct 04, 2005 6:50 pm    Post subject: Re: multi-platform thread API wrapper Reply with quote



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





PostPosted: Tue Oct 04, 2005 6:51 pm    Post subject: Re: multi-platform thread API wrapper Reply with quote


<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





PostPosted: Tue Oct 04, 2005 6:58 pm    Post subject: Re: multi-platform thread API wrapper Reply with quote

[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





PostPosted: Thu Oct 06, 2005 8:42 am    Post subject: Re: multi-platform thread API wrapper Reply with quote

[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





PostPosted: Fri Oct 07, 2005 1:51 pm    Post subject: Re: multi-platform thread API wrapper Reply with quote

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





PostPosted: Thu Dec 01, 2005 1:14 am    Post subject: Re: multi-platform thread API wrapper Reply with quote


Mozilla's NSPR (http://www.mozilla.org/projects/nspr/) might provide the
abstraction you're looking for.

Regards,
Stepan


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.