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/debug - Clean up Debug() method, bind to #define config
[tpg/acess2.git]
/
Tools
/
nativelib
/
include
/
threads_int.h
diff --git
a/Tools/nativelib/include/threads_int.h
b/Tools/nativelib/include/threads_int.h
index
3e85232
..
08bb4f7
100644
(file)
--- a/
Tools/nativelib/include/threads_int.h
+++ b/
Tools/nativelib/include/threads_int.h
@@
-10,7
+10,9
@@
#include <shortlock.h>
#include <shortlock.h>
+#ifndef _THREADS_H_
typedef struct sThread tThread;
typedef struct sThread tThread;
+#endif
#define THREAD_EVENT_RWLOCK (1 << 8)
#define THREAD_EVENT_RWLOCK (1 << 8)
@@
-47,7
+49,7
@@
struct sThread
tShortSpinlock IsLocked;
tShortSpinlock IsLocked;
- uint32_t
PendingEvents
;
+ uint32_t
EventState
;
uint32_t WaitingEvents;
tThreadIntSem *WaitSemaphore; // pthreads
uint32_t WaitingEvents;
tThreadIntSem *WaitSemaphore; // pthreads
@@
-100,10
+102,13
@@
extern tShortSpinlock glThreadListLock;
extern int Threads_int_CreateThread(struct sThread *Thread);
extern int Threads_int_ThreadingEnabled(void);
extern int Threads_int_CreateThread(struct sThread *Thread);
extern int Threads_int_ThreadingEnabled(void);
-extern tThread *Proc_GetCurThread(void);
-extern tThread *Threads_RemActive(void);
-extern void Threads_AddActive(tThread *Thread);
+
+extern struct sThread *Proc_GetCurThread(void);
+extern struct sThread *Threads_RemActive(void);
+extern void Threads_AddActive(struct sThread *Thread);
extern void Threads_int_WaitForStatusEnd(enum eThreadStatus Status);
extern void Threads_int_WaitForStatusEnd(enum eThreadStatus Status);
+extern int Threads_int_Sleep(enum eThreadStatus Status, void *Ptr, int Num, struct sThread **ListHead, struct sThread **ListTail, tShortSpinlock *Lock);
+extern void Semaphore_ForceWake(struct sThread *Thread);
extern tThreadIntMutex *Threads_int_MutexCreate(void);
extern void Threads_int_MutexDestroy(tThreadIntMutex *Mutex);
extern tThreadIntMutex *Threads_int_MutexCreate(void);
extern void Threads_int_MutexDestroy(tThreadIntMutex *Mutex);
UCC
git Repository :: git.ucc.asn.au