Threaded implementatioon

Ulrich Drepper drepper@redhat.com
Fri Apr 7 10:46:00 GMT 2000


"Anthony Williams" <anthony_w.geo@yahoo.com> writes:

> #define PTHREAD_MUTEX_INITIALIZER {{{0},0},{{{0}}},{0}}
> 
> Currently I put this in bits/stl_threads.h immediately after the
> #include <pthread.h>
> 
> Is this the correct place, or should it go somewhere else?

You should put this in the "fixed" pthread.h header of gcc.  In gcc
install directory there is an include directory with files which
fix-includes fixed.  If pthead.h is not there, copy it over.  Then
make the appropriate change there and you'll not only benefit from the
correct definition in the STL header but everywhere.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


More information about the Libstdc++ mailing list