Date: Tue, 4 Jan 2005 14:16:47 GMT From: David Xu <davidxu@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 68256 for review Message-ID: <200501041416.j04EGl0n022685@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=68256 Change 68256 by davidxu@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());
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501041416.j04EGl0n022685>