meyers: Item 12: Effective C++

J

John

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
 
P

Phlip

John said:
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?
 
J

John

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

Ioannis Vranos

John said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,293
Messages
2,571,500
Members
48,188
Latest member
GerardRush

Latest Threads

Top