C++ static constructors and SMP

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Oct 21 18:43:41 UTC 2013


On 10/21/2013 08:30 PM, Sebastian Huber wrote:
>>> What happens on Linux if you
>>> start thread in one of the static constructors on SMP?
>>
>> It runs and the user is responsible for managing this. What will not 
>> happen is 'main' is entered until all static constructors have been 
>> called. 
>
> On my Linux this is not true.

Sorry, I should read more carefully.  You are right.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list