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

Home » U++ Library support » U++ MT-multithreading and servers » ARM threadind does not work
Re: ARM threadind does not work [message #38440 is a reply to message #38426] Sat, 15 December 2012 18:16 Go to previous messageGo to previous message
Didier is currently offline  Didier
Messages: 740
Registered: November 2008
Location: France
Contributor
Found one uninitialized variable:

Core/Mt.cpp L13 :
static Mutex& sMutexLock()
{
	static Mutex *section;   **** need's to be initialized to 0  ****
	if(!section) {
		static byte b[sizeof(Mutex)];
		section = new(b) Mutex;
	}
	return *section;
}


If section is not initialized to '0' : we can pray for the lazy initialisation to work properly

This correction, is yet not sufficient Sad


NB: I will furnish a complete patch when I'll get this running (if I succeed Confused )
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TcpSocket issues on XP but not on Win7?
Next Topic: Redirect - possibly another Skylark bug
Goto Forum:
  


Current Time: Sun May 10 17:46:59 GMT+2 2026

Total time taken to generate the page: 0.00527 seconds