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
Modules/UDI - Buffer delete, chained CB support
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
workqueue.c
diff --git
a/KernelLand/Kernel/workqueue.c
b/KernelLand/Kernel/workqueue.c
index
2cd6a25
..
2083bde
100644
(file)
--- a/
KernelLand/Kernel/workqueue.c
+++ b/
KernelLand/Kernel/workqueue.c
@@
-36,12
+36,18
@@
void *Workqueue_GetWork(tWorkqueue *Queue)
return ret;
}
return ret;
}
+ #if 0
+ Threads_int_Sleep(THREAD_STAT_QUEUESLEEP,
+ Queue, 0,
+ &Queue->Sleeper, NULL, &Queue->Protector);
+ #endif
// Go to sleep
SHORTLOCK(&glThreadListLock);
us = Threads_RemActive();
us->WaitPointer = Queue;
us->Status = THREAD_STAT_QUEUESLEEP;
Queue->Sleeper = us;
// Go to sleep
SHORTLOCK(&glThreadListLock);
us = Threads_RemActive();
us->WaitPointer = Queue;
us->Status = THREAD_STAT_QUEUESLEEP;
Queue->Sleeper = us;
+
SHORTREL(&Queue->Protector);
SHORTREL(&glThreadListLock);
SHORTREL(&Queue->Protector);
SHORTREL(&glThreadListLock);
UCC
git Repository :: git.ucc.asn.au