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
Tools/NetTest - TCP stack testing, going well
[tpg/acess2.git]
/
Tools
/
nativelib
/
threads_int.c
diff --git
a/Tools/nativelib/threads_int.c
b/Tools/nativelib/threads_int.c
index
8ab9b34
..
87c60b1
100644
(file)
--- a/
Tools/nativelib/threads_int.c
+++ b/
Tools/nativelib/threads_int.c
@@
-8,6
+8,7
@@
* POSIX Mutex/Semaphore management
* Wait state
*/
* POSIX Mutex/Semaphore management
* Wait state
*/
+#define DEBUG 1
#include <stddef.h>
#include <stdlib.h>
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdint.h>
@@
-109,9
+110,12
@@
void Threads_int_SemWaitAll(tThreadIntSem *Sem)
if( Threads_int_ThreadingEnabled() )
{
// TODO: Handle multiples
if( Threads_int_ThreadingEnabled() )
{
// TODO: Handle multiples
+ LOG("Waiting on %p", Sem);
sem_wait( (void*)Sem );
sem_wait( (void*)Sem );
- while( sem_trywait((void*)Sem) )
+ LOG("Wait 1 done, cleaning up");
+ while( sem_trywait((void*)Sem) == 0 )
;
;
+ LOG("Wait over");
}
else
{
}
else
{
UCC
git Repository :: git.ucc.asn.au