Show
Ignore:
Timestamp:
05/20/10 16:05:25 (2 years ago)
Author:
mwhitworth
Message:

Add to TCP/IP stack.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/netchannel/include/task.h

    r1701 r2085  
    2929struct JournalHandle; 
    3030 
    31 #define THR_USED_MATH 1 
     31#define THR_USED_MATH           1 
     32#define THR_NEED_RESTORE        2 
    3233 
    3334struct Thread 
    3435{ 
    3536        DWORD currStack; 
     37 
     38        /* Event handling functions */ 
     39        void (*eventFunc)(void* data); 
     40        void* eventData; 
     41        DWORD eventStack; 
     42        DWORD oldEip; 
     43 
    3644        struct Process* parent; 
    3745        DWORD state,entry,esp3; 
     
    5361/* Thread defines go here */ 
    5462 
    55 #define THR_RUNNING 1 
    56 #define THR_PAUSED  2 
    57 #define THR_DYING   4 
     63#define THR_RUNNING             1 
     64#define THR_PAUSED              2 
     65#define THR_INTERRUPTIBLE       4 
     66#define THR_DYING               8 
    5867 
    5968struct Process 
     
    6170        struct ListHead next,sibling,children; 
    6271        int exitCode, state; 
     72         
     73        /* Resource lists */ 
    6374        struct File* files; /* Dynamically allocated */ 
    64         Spinlock fileListLock; 
    65         int numFds; 
     75        struct KeTimer** timers; 
     76        Spinlock fileListLock, timerListLock; 
     77        int numFds, numTimers; 
     78 
     79        /* Filesystem contexts */ 
    6680        struct VNode *cwd,*root,*exec; 
    6781        char* name;