Changeset 1287 for trunk/src/emx/include


Ignore:
Timestamp:
Mar 11, 2004, 4:05:55 AM (21 years ago)
Author:
bird
Message:

#967: Initial per thread data rewrite.

Location:
trunk/src/emx/include
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/emx/syscalls.h

    • Property cvs2svn:cvs-rev changed from 1.8 to 1.9
    r1286 r1287  
    136136int __dup (int handle);
    137137int __dup2 (int handle1, int handle2);
    138 int __endthread (int tid);
     138int __endthread (void *pvThrd);
    139139int __execname (char *buf, size_t bufsize);
    140140void __exit (int ret) __attribute__ ((__noreturn__));
     
    171171int __imphandle (int handle);
    172172int __impsockhandle (int handle, int flags);
    173 int __initthread (void *preg);
    174173int __ioctl1 (int handle, int code);
    175174int __ioctl2 (int handle, unsigned long request, int arg);
     
    226225int __write (int handle, __const__ void *buf, size_t nbyte);
    227226
    228 
    229 
    230227#if defined (__cplusplus)
    231228}
  • trunk/src/emx/include/emx/thread.h

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r1286 r1287  
    1 /* emx/thread.h (emx+gcc) */
    2 
    3 #ifndef _EMX_THREAD_H
    4 #define _EMX_THREAD_H
    5 
    6 #if defined (__cplusplus)
    7 extern "C" {
    8 #endif
    9 
    10 #include <time.h> /* struct tm; */
    11 
    12 struct _uheap;
    13 
    14 struct _thread
    15 {
    16   int             _th_errno;                /* comes first, cf. errnofun.s */
    17   void          * _th_arg;
    18   void          (*_th_start)(void *);
    19   unsigned char * _th_strtok_ptr;
    20   char            _th_asctime_buf[26+2];    /* 2 chars for padding */
    21   char            _th_tmpnam_buf[16];       /* cf. stdio.h */
    22   struct tm       _th_gmtime_buf;
    23   unsigned int    _th_rand;                 /* Used by rand() */
    24   void          * _th_store;                /* Pointer to user data */
    25   char            _th_vollabel[12];         /* Used by _getvol() */
    26   char            _th_error[28];            /* Used by strerror() */
    27   struct _uheap * _th_rheap;                /* Default regular heap */
    28   struct _uheap * _th_theap;                /* Default tiled heap */
    29   char            _th_ttyname[32];          /* Used by ttyname() */
    30   char            _th_inetntoa[16];         /* Used by inetntoa() */
    31   int             _th_reserved[974];        /* 4096 bytes, total */
    32 };
    33 
    34 struct _thread *_thread (void);
    35 
    36 
    37 #if defined (__cplusplus)
    38 }
    39 #endif
    40 
    41 #endif /* not _EMX_THREAD_H */
     1#error "This file is dead. use InnoTekLIBC/thread.h!"
  • trunk/src/emx/include/emx/umalloc.h

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r1286 r1287  
    606606/* Each thread has its own default heap. */
    607607
    608 #define _UM_DEFAULT_REGULAR_HEAP tp->_th_rheap
    609 #define _UM_DEFAULT_TILED_HEAP   tp->_th_theap
    610 #define _UM_MT_DECL              struct _thread *tp = _thread ();
     608#define _UM_DEFAULT_REGULAR_HEAP pThrd->pRegularHeap
     609#define _UM_DEFAULT_TILED_HEAP   pThrd->pTiledHeap
     610#define _UM_MT_DECL              __LIBC_PTHREAD pThrd = __libc_threadCurrent();
    611611
    612612/* Note that _um_regular_heap is declared in <umalloc.h>.
Note: See TracChangeset for help on using the changeset viewer.