tuseful warning comment - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 0b561695d60ce777fbfb332a436c2a51702fae23
 (DIR) parent b50e9caf31a0d1346bf782c6b4e32f90fd707223
 (HTM) Author: rsc <devnull@localhost>
       Date:   Sun, 16 Jan 2005 21:31:21 +0000
       
       useful warning comment
       
       Diffstat:
         M src/libthread/thread.c              |       9 +++++++++
       
       1 file changed, 9 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/src/libthread/thread.c b/src/libthread/thread.c
       t@@ -510,6 +510,15 @@ static void
        threadmainstart(void *v)
        {
                USED(v);
       +
       +        /*
       +         * N.B. This call to proc() is a program's first call (indirectly) to a
       +         * pthreads function while executing on a non-pthreads-allocated
       +         * stack.  If the pthreads implementation is using the stack pointer
       +         * to locate the per-thread data, then this call will blow up.
       +         * This means the pthread implementation is not suitable for
       +         * running under libthread.  Time to write your own.  Sorry.
       +         */
                threadmainproc = proc();
                threadmain(threadargc, threadargv);
        }