pthread_create oddity

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 7 11:20:59 PDT 2015


On 8/7/15 1:36 PM, Andrei Alexandrescu wrote:
> I ran into an oddity of pthread_create, see
> https://github.com/D-Programming-Language/druntime/pull/1340. It appears
> that if stack size is not explicitly set, the 32-bit version of
> pthread_create fails. That's happening at least on Ubuntu64 under VMWare
> hosted on Linux.

What is the stack size using pthread_getstacksize before the setting of it?

I would think with pthread_attr_init, it should be a reasonable default.

-Steve


More information about the Digitalmars-d mailing list