Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Changeing to recursive critical sections... (?)
Changeing to recursive critical sections... (?) [message #8449] Sat, 10 March 2007 13:59 Go to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
Well, I have wasted 4 days finding a bug that ended as another Linux mutex deadlock case. To explain, default Linux version of mutex (unlike Win32 critical section) does not allow single thread to lock the same mutex twice. This often leads to quite tiresome problems and hard to spot bugs.

Now I have found there exists "PTHREAD_MUTEX_RECURSIVE" (non-default) attribute that should avoid this trouble. Anyway, support on various platforms does not seem to be consistent, at least it was not in the past.

Therefore, before going there, any information about platform specific issues is highly appreciated.

Mirek
 
Read Message
Read Message
Previous Topic: New Core preview
Next Topic: pkg-config discussion
Goto Forum:
  


Current Time: Wed Jun 25 07:19:45 CEST 2025

Total time taken to generate the page: 0.04249 seconds