Date: Sat, 11 Apr 1998 00:02:59 -0700 (PDT) From: John Birrell <jb@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/stdlib exit.c Message-ID: <199804110702.AAA29903@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jb 1998/04/11 00:02:59 PDT Modified files: lib/libc/stdlib exit.c Log: Add a global variable called __isthreaded that can be tested throughout libc to determine if locking is required. This is needed in libc for use with kernel threads, but until a thread is created, we don't really want to bother locking things. The variable was added here because the crt code calls exit(main()) so all programs will get the variable. Revision Changes Path 1.2 +9 -0 src/lib/libc/stdlib/exit.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804110702.AAA29903>