eb5f9dffbf56c3a4d0da1ad84b8093b4bf834eff
[tpg/acess2.git] / Tools / nativelib / include / threads_int.h
1 /*
2  * Acess2 libnative (Kernel Simulation Library)
3  * - By John Hodge (thePowersGang)
4  *
5  * threads_int.h
6  * - Threads handling definitions
7  */
8 #ifndef _THREADS_INT_H_
9 #define _THREADS_INT_H_
10
11 struct sProcess
12 {
13         struct sProcess *Next;
14
15          int    PID;
16          int    UID, GID;
17         
18         char    *CWD;
19         char    *Chroot;
20          int    MaxFDs;
21 };
22
23 struct sThread
24 {
25         struct sThread  *Next;
26          int    TID;
27         
28         uint32_t        PendingEvents;
29         uint32_t        WaitingEvents;
30         void    *WaitSemaphore; // pthreads
31         
32         // Init Only
33         void    (*SpawnFcn)(void*);
34         void    *SpawnData;
35 };
36
37 extern int      Threads_int_CreateThread(struct sThread *Thread);
38
39 #endif
40

UCC git Repository :: git.ucc.asn.au