aboutsummaryrefslogtreecommitdiff
path: root/lib/libc_r/uthread/uthread_autoinit.cc
Commit message (Collapse)AuthorAgeFilesLines
* Use GCC's __attribute__ ((constructor)) mechanism to invoke the pthreadAlfred Perlstein2002-05-111-89/+0
| | | | | | | | | | startup code rather than a static C++ object since c++ seems to be broken. This doesn't seem to work for staticically linked program just yet, I'll give that some more work when I get a chance. Notes: svn path=/head/; revision=96401
* Change REGENTS -> AUTHOR in the copyright.Daniel Eischen2000-01-061-1/+2
| | | | | | | | | | | Add $FreeBSD$. I missed this file in a previous commit. Pointed out by: tg Notes: svn path=/head/; revision=55504
* Fix description of the _thread_autoinit_dummy_decl trick.Ralf S. Engelschall1999-08-171-3/+3
| | | | Notes: svn path=/head/; revision=49958
* Added a new module "uthread_autoinit.cc". This is a small C++ module.John Polstra1996-02-171-0/+88
It uses a static constructor to call _thread_init() at program start-up time. That eliminates the need for any initialization hooks in crt0.o. Added a symbol reference in "uthread_init.c", to ensure that the new module will always be pulled in when the archive version of the library is used. In "Makefile.inc", defined CPLUSPLUSLIB, so that the constructor will be properly invoked in the shared library. Suggested by: Christopher Provenzano, Peter Wemm, and others. Notes: svn path=/head/; revision=14117