Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > meyers: Item 12: Effective C++

Reply
Thread Tools

meyers: Item 12: Effective C++

 
 
John
Guest
Posts: n/a
 
      04-27-2005
I am looking for a good Lock class implementation that
has barely been implemented in Effective STL of Myers (Item 12).
Any pointers?

Is there an implementation that is good for both OpenMP and pthreads?

Thanks,
--j

 
Reply With Quote
 
 
 
 
Phlip
Guest
Posts: n/a
 
      04-27-2005
John wrote:

> I am looking for a good Lock class implementation that
> has barely been implemented in Effective STL of Myers (Item 12).
> Any pointers?


If you mean an object that locks on construction and unlocks on destruction,
they are all over the place.

> Is there an implementation that is good for both OpenMP and pthreads?


Why are you using threads?

--
Phlip
http://www.c2.com/cgi/wiki?ZeekLand


 
Reply With Quote
 
 
 
 
John
Guest
Posts: n/a
 
      04-27-2005

I would like to have the option of using OpenMP or threads
depending on the architecture / compiler. Hence I asked.

Phlip wrote:
> John wrote:
>
> > I am looking for a good Lock class implementation that
> > has barely been implemented in Effective STL of Myers (Item 12).
> > Any pointers?

>
> If you mean an object that locks on construction and unlocks on

destruction,
> they are all over the place.
>
> > Is there an implementation that is good for both OpenMP and

pthreads?
>
> Why are you using threads?
>
> --
> Phlip
> http://www.c2.com/cgi/wiki?ZeekLand


 
Reply With Quote
 
Ioannis Vranos
Guest
Posts: n/a
 
      04-27-2005
John wrote:

> I am looking for a good Lock class implementation that
> has barely been implemented in Effective STL of Myers (Item 12).
> Any pointers?
>
> Is there an implementation that is good for both OpenMP and pthreads?



OpenMP and thread-locking don't sound they have anything to do with each other.


--
Ioannis Vranos

http://www23.brinkster.com/noicys
 
Reply With Quote
 
Ioannis Vranos
Guest
Posts: n/a
 
      04-27-2005
Ioannis Vranos wrote:

> OpenMP and thread-locking don't sound they have anything to do with each
> other.


Forget that I said that.



--
Ioannis Vranos

http://www23.brinkster.com/noicys
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about Effective STL item 7 Piotr C++ 2 01-16-2006 11:03 PM
more effective c++ item 31 cfchou@gmail.com C++ 4 09-27-2005 09:15 AM
Effective C++ - item 7 (memory mgt). FBergemann@web.de C++ 1 08-07-2005 12:06 PM
Effective STL Item 4 (size() vs. empty()) Matthias C++ 25 02-01-2005 02:16 PM
Item 13 in Meyer's Effective C++ Don Kim C++ 9 05-23-2004 07:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57