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 » U++ Library support » U++ MT-multithreading and servers » GuiLock Example broken
Re: GuiLock Example broken [message #22829 is a reply to message #22813] Thu, 20 August 2009 17:52 Go to previous messageGo to previous message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Hi,

attached I provide a test package for explicit TLS using phreads.

I wanted to evaluate implicit TLS due to missing __thread storage qualification support on OpenBSD. What I discovered was a strange behavior with U++ Core package included.

It runs without problems when compiled in optimal mode without including U++ Core. But when I include Core U++ package I get segmentation faults all the time regardless if it is compiled in debug mode or optimal mode.

As far as I understand the only thing that is replaced by including Core package is heap implementation (in optimal mode) and since I use the heap to allocate and de-allocate memory for the TLS variables it is used instead of standard one. Is that right?

If I do not use heap allocated variables, but pre-allocated ones, I do not have any problems (This can be done by setting TLS_PRE_ALLOC to true).

Matthias

[Updated on: Fri, 21 August 2009 10:39]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
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 msg to specific IP ?
Next Topic: Example Hello World Client/Server Broken?
Goto Forum:
  


Current Time: Mon Aug 25 19:00:16 CEST 2025

Total time taken to generate the page: 0.06250 seconds