tadd threaddata - 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 8dd8a81f71771d3f2d95a95992fdddebd3063919
 (DIR) parent 670dd11a8a0c97345919b28502c950d3a3ef776c
 (HTM) Author: rsc <devnull@localhost>
       Date:   Fri, 18 Mar 2005 18:56:17 +0000
       
       add threaddata
       
       Diffstat:
         M src/libthread/thread.c              |       6 ++++++
         M src/libthread/threadimpl.h          |       1 +
       
       2 files changed, 7 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/src/libthread/thread.c b/src/libthread/thread.c
       t@@ -327,6 +327,12 @@ procdata(void)
                return &proc()->udata;
        }
        
       +void**
       +threaddata(void)
       +{
       +        return &proc()->thread->udata;
       +}
       +
        extern Jmp *(*_notejmpbuf)(void);
        static Jmp*
        threadnotejmp(void)
 (DIR) diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h
       t@@ -70,6 +70,7 @@ struct _Thread
                Proc        *proc;
                char        name[256];
                char        state[256];
       +        void *udata;
        };
        
        struct _Procrendez