Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#5 yarp::os::Semaphore into std::vector

open
None
5
2010-05-03
2010-05-03
Anonymous
No

Is it possible use yarp::os::Semaphore into a vector?
I have problems when I use push_back method of std::vector when the object pushed contain an yarp::os::Semaphore object.
I think the problem comes from yarp::os::Semaphore object, because it does not implement a copy constructor, isn't it?
Could you help me?

Discussion

    • assigned_to: nobody --> eshuy
     
  • yarp::os::Semaphore objects are not set up to be copied. Depending on how you want copies to behave, consider wrapping them in std::auto_ptr or boost::shared_ptr or a wrapper of your own. In general, copying objects representing semaphores, threads, and other system resources has to be done with some care. If you have an idea for a good default copy behavior for YARP, please suggest it.
    Thanks, Paul

     
  • OHZ00J <a href="http://fgkgbpamumba.com/">fgkgbpamumba</a>, [url=http://nmupibttgxoe.com/]nmupibttgxoe[/url], [link=http://glgjqwyreqhw.com/]glgjqwyreqhw[/link], http://qfdwfluoccnk.com/