This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PATCH: Provide runtime intialization of _STL_mutex_lock class
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Subject: Re: PATCH: Provide runtime intialization of _STL_mutex_lock class
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Sun, 10 Jun 2001 22:04:32 -0700 (PDT)
- cc: rittle at labs dot mot dot com, gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
John, a couple of things.
1) why are you adding this to libsupc++? it should be added to
src/Makefile.am
2) there is already a src/globals.cc -- why can't you use that?
3) In general, the naming seems a bit off. stl_globals, yet the patch is
for threads and mutexes.... also we're trying to go away from _STL bits and
towad _GLIBCPP_ bits in names.
-benjamin
> objects can be intialized with the _STL_MUTEX_INITIALIZER on systems
> 2001-06-09 John David Anglin <dave@hiauly1.hia.nrc.ca>
>
> * libsupc++/Makefile.am (sources): Add stl_globals.cc.
> * libsupc++/stl_globals.cc: New file.
> * include/bits/stl_threads.h (_STL_mutex_lock): Provide once-only
> runtime initialization of _M_lock when __GTHREAD_MUTEX_INIT_FUNCTION
> is defined.