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
Fiddling with threading bugs (both Qemu and Bochs hate atm)
[tpg/acess2.git]
/
Kernel
/
messages.c
diff --git
a/Kernel/messages.c
b/Kernel/messages.c
index
4765d65
..
03e225b
100644
(file)
--- a/
Kernel/messages.c
+++ b/
Kernel/messages.c
@@
-6,6
+6,9
@@
#include <threads.h>
#include <errno.h>
#include <threads.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)
@@
-60,7
+63,9
@@
int Proc_SendMessage(Uint *Err, Uint Dest, int Length, void *Data)
SHORTREL(&thread->IsLocked);
SHORTREL(&thread->IsLocked);
+ SHORTLOCK(&glThreadListLock);
Threads_Wake( thread );
Threads_Wake( thread );
+ SHORTREL(&glThreadListLock);
return 0;
}
return 0;
}
UCC
git Repository :: git.ucc.asn.au