This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: Provide runtime intialization of _STL_mutex_lock class



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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]