Fixed places where char* was used in place of const char*
[tpg/acess2.git] / AcessNative / acesskernel_src / threads.c
1 /*
2  * Acess2 Native Kernel
3  * - Acess kernel emulation on another OS using SDL and UDP
4  *
5  * threads.c
6  * - Thread and process handling
7  */
8 #include <acess.h>
9
10 // === STRUCTURES ===
11 typedef struct sThread
12 {
13         struct sThread  *Next;
14         tTID    TID, PID;
15         tUID    UID, GID;
16
17         struct sThread  *Parent;
18
19         char    *ThreadName;
20
21         // Config?
22         Uint    Config[NUM_CFG_ENTRIES];
23 }       tThread;
24
25 // === GLOBALS ===
26 tThread *gpThreads;
27 __thread tThread        *gpCurrentThread;
28
29 // === CODE ===
30 tUID Threads_GetUID() { return gpCurrentThread->UID; }
31 tGID Threads_GetGID() { return gpCurrentThread->GID; }
32 tTID Threads_GetTID() { return gpCurrentThread->TID; }
33 tPID Threads_GetPID() { return gpCurrentThread->PID; }
34
35 Uint *Threads_GetCfgPtr(int Index)
36 {
37         return &gpCurrentThread->Config[Index];
38 }

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