Subject: Re: Pthreads question
To: Jaromir Dolecek <dolecek@ics.muni.cz>
From: Zdenek Salvet <salvet@horn.ics.muni.cz>
List: current-users
Date: 10/02/1997 07:25:16
> 
> When I do shared library, some of test programs keep core-dumping
> while attempting to make a mutex; one of library internal arrays
> isn't set on stratup it seems.  w/ static library everything seems
> to work just okay. Is this known problem, or I'm doing something
> stupid ?

pthread_init() is missing in those test programs;
when using static library it is run by C++ global constructor hack.
With pthread_init() all tests work fine.

-- 
Zdenek Salvet                                              salvet@ics.muni.cz 
----------------------------------------------------------------------------
           If God had meant for us to be in the Army,
         we would have been born with green, baggy skin.