PATCH: Provide runtime intialization of _STL_mutex_lock class

Benjamin Kosnik bkoz@redhat.com
Sun Jun 10 22:05:00 GMT 2001


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.



More information about the Libstdc++ mailing list