git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Commenting for new function
[tpg/acess2.git]
/
Kernel
/
threads.c
diff --git
a/Kernel/threads.c
b/Kernel/threads.c
index
890f32d
..
075350d
100644
(file)
--- a/
Kernel/threads.c
+++ b/
Kernel/threads.c
@@
-610,21
+610,23
@@
void Threads_SendSignal(int TID, int Num)
#endif
// --- Process Structure Access Functions ---
#endif
// --- Process Structure Access Functions ---
-
int
Threads_GetPID()
+
tPID
Threads_GetPID()
{
return Proc_GetCurThread()->TGID;
}
{
return Proc_GetCurThread()->TGID;
}
-
int
Threads_GetTID()
+
tTID
Threads_GetTID()
{
return Proc_GetCurThread()->TID;
}
tUID Threads_GetUID()
{
{
return Proc_GetCurThread()->TID;
}
tUID Threads_GetUID()
{
- tThread *t = Proc_GetCurThread();
- int ret = t->UID;
- Log("Threads_GetUID: TID %i, return %i", t->TID, ret);
- return ret;
+ return Proc_GetCurThread()->UID;
+}
+tGID Threads_GetGID()
+{
+ return Proc_GetCurThread()->GID;
}
}
+
int Threads_SetUID(Uint *Errno, tUID ID)
{
tThread *t = Proc_GetCurThread();
int Threads_SetUID(Uint *Errno, tUID ID)
{
tThread *t = Proc_GetCurThread();
@@
-637,10
+639,6
@@
int Threads_SetUID(Uint *Errno, tUID ID)
return 0;
}
return 0;
}
-tGID Threads_GetGID()
-{
- return Proc_GetCurThread()->GID;
-}
int Threads_SetGID(Uint *Errno, tGID ID)
{
tThread *t = Proc_GetCurThread();
int Threads_SetGID(Uint *Errno, tGID ID)
{
tThread *t = Proc_GetCurThread();
UCC
git Repository :: git.ucc.asn.au