PERFORCE change 68256 for review
David Xu
davidxu at FreeBSD.org
Tue Jan 4 06:16:48 PST 2005
http://perforce.freebsd.org/chv.cgi?CH=68256
Change 68256 by davidxu at davidxu_alona on 2005/01/04 14:16:44
use _thr_check_init() to test if lib was inited.
Affected files ...
.. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_self.c#3 edit
Differences ...
==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_self.c#3 (text+ko) ====
@@ -39,8 +39,7 @@
pthread_t
_pthread_self(void)
{
- if (_thr_initial == NULL)
- _libpthread_init(NULL);
+ _thr_check_init();
/* Return the running thread pointer: */
return (_get_curthread());
More information about the p4-projects
mailing list