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
Kernel - Fixed a double-lock in message handling
[tpg/acess2.git]
/
Kernel
/
messages.c
diff --git
a/Kernel/messages.c
b/Kernel/messages.c
index
05f75f1
..
1391d99
100644
(file)
--- a/
Kernel/messages.c
+++ b/
Kernel/messages.c
@@
-11,9
+11,6
@@
#include <threads_int.h>
#include <errno.h>
#include <threads_int.h>
#include <errno.h>
-// === IMPORTS ===
-extern tShortSpinlock glThreadListLock;
-
// === CODE ===
/**
* \fn int Proc_SendMessage(Uint *Err, Uint Dest, int Length, void *Data)
// === CODE ===
/**
* \fn int Proc_SendMessage(Uint *Err, Uint Dest, int Length, void *Data)
@@
-68,10
+65,8
@@
int Proc_SendMessage(Uint *Err, Uint Dest, int Length, void *Data)
SHORTREL(&thread->IsLocked);
SHORTREL(&thread->IsLocked);
- SHORTLOCK(&glThreadListLock);
LOG("Waking %p (%i %s)", thread, thread->TID, thread->ThreadName);
Threads_Wake( thread );
LOG("Waking %p (%i %s)", thread, thread->TID, thread->ThreadName);
Threads_Wake( thread );
- SHORTREL(&glThreadListLock);
LEAVE_RET('i', 0);
}
LEAVE_RET('i', 0);
}
UCC
git Repository :: git.ucc.asn.au