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   |
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
|
|
|
 |
|
GuiLock Example broken
By: masu on Mon, 17 August 2009 10:35
|
 |
|
Re: GuiLock Example broken
By: cocob on Mon, 17 August 2009 10:36
|
 |
|
Re: GuiLock Example broken
By: mirek on Mon, 17 August 2009 11:57
|
 |
|
Re: GuiLock Example broken
By: koldo on Mon, 17 August 2009 17:02
|
 |
|
Re: GuiLock Example broken
By: masu on Mon, 17 August 2009 18:22
|
 |
|
Re: GuiLock Example broken
By: mirek on Mon, 17 August 2009 19:17
|
 |
|
Re: GuiLock Example broken
By: koldo on Tue, 18 August 2009 01:38
|
 |
|
Re: GuiLock Example broken
By: masu on Tue, 18 August 2009 13:13
|
 |
|
Re: GuiLock Example broken
By: koldo on Tue, 18 August 2009 14:45
|
 |
|
Re: GuiLock Example broken
By: mirek on Tue, 18 August 2009 20:22
|
 |
|
Re: GuiLock Example broken
By: masu on Thu, 20 August 2009 17:52
|
 |
|
Re: GuiLock Example broken
By: mirek on Fri, 21 August 2009 14:12
|
 |
|
Re: GuiLock Example broken
By: mirek on Fri, 21 August 2009 14:15
|
 |
|
Re: GuiLock Example broken
By: masu on Fri, 21 August 2009 14:19
|
 |
|
Re: GuiLock Example broken
By: mirek on Fri, 21 August 2009 14:33
|
 |
|
Re: GuiLock Example broken
By: masu on Fri, 21 August 2009 14:43
|
 |
|
Re: GuiLock Example broken
By: koldo on Sun, 23 August 2009 10:37
|
 |
|
Re: GuiLock Example broken
By: koldo on Mon, 24 August 2009 10:26
|
 |
|
Re: GuiLock Example broken
By: masu on Mon, 24 August 2009 12:23
|
 |
|
Re: GuiLock Example broken
By: koldo on Wed, 26 August 2009 09:10
|
 |
|
Re: GuiLock Example broken
By: masu on Wed, 26 August 2009 10:33
|
 |
|
Re: GuiLock Example broken
By: koldo on Wed, 26 August 2009 20:40
|
 |
|
Re: GuiLock Example broken
By: Novo on Thu, 27 August 2009 05:57
|
 |
|
Re: GuiLock Example broken
By: masu on Thu, 27 August 2009 13:50
|
 |
|
Re: GuiLock Example broken
By: koldo on Tue, 13 October 2009 14:13
|
Goto Forum:
Current Time: Mon Aug 25 11:45:38 CEST 2025
Total time taken to generate the page: 0.09266 seconds
|