U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ MT-multithreading and servers » MT/Locking Questions
Re: MT/Locking Questions [message #15535 is a reply to message #15534] Mon, 28 April 2008 20:00 Go to previous messageGo to previous message
captainc is currently offline  captainc
Messages: 278
Registered: December 2006
Location: New Jersey, USA
Experienced Member
Yes, that example doesn't need a lock, but I kept it really simple. My larger example that I am working with has objects being created and passed using Ptr<>. A number of threads can act on those objects, and I wanted to be sure that only single object instances are being locked.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to send broadcast
Next Topic: PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP not defined
Goto Forum:
  


Current Time: Wed Sep 16 09:08:05 GMT+2 2026

Total time taken to generate the page: 0.00592 seconds