MANY changes. See CHANGES member for details.

git-svn-id: file:///home/jj/hercules.svn/trunk@1391 956126f8-22a0-4046-8f4a-272fa8102e63
This commit is contained in:
Fish (David B Trout)
2003-06-01 11:46:25 +00:00
parent c88f04a75d
commit b4fae6f1f0
85 changed files with 5350 additions and 5024 deletions

View File

@@ -70,6 +70,7 @@ typedef void* (*PFT_THREAD_FUNC)(void*); // "thread function" ptr
////////////////////////////////////////////////////////////////////////////////////
// (thread signalling not supported...)
extern
void
fthread_kill // (nop)
(
@@ -80,6 +81,7 @@ fthread_kill // (nop)
////////////////////////////////////////////////////////////////////////////////////
// create a new thread...
extern
int
fthread_create
(
@@ -97,6 +99,7 @@ fthread_create
////////////////////////////////////////////////////////////////////////////////////
// return thread-id...
extern
FT_W32_DWORD
fthread_self
(
@@ -105,6 +108,7 @@ fthread_self
////////////////////////////////////////////////////////////////////////////////////
// exit from a thread...
extern
void
fthread_exit
(
@@ -114,6 +118,7 @@ fthread_exit
////////////////////////////////////////////////////////////////////////////////////
// initialize a "mutex"...
extern
int
fthread_mutex_init
(
@@ -127,6 +132,7 @@ fthread_mutex_init
////////////////////////////////////////////////////////////////////////////////////
// destroy a "mutex"...
extern
int
fthread_mutex_destroy
(
@@ -140,6 +146,7 @@ fthread_mutex_destroy
////////////////////////////////////////////////////////////////////////////////////
// lock a "mutex"...
extern
int
fthread_mutex_lock
(
@@ -153,6 +160,7 @@ fthread_mutex_lock
////////////////////////////////////////////////////////////////////////////////////
// try to lock a "mutex"...
extern
int
fthread_mutex_trylock
(
@@ -166,6 +174,7 @@ fthread_mutex_trylock
////////////////////////////////////////////////////////////////////////////////////
// unlock a "mutex"...
extern
int
fthread_mutex_unlock
(
@@ -179,6 +188,7 @@ fthread_mutex_unlock
////////////////////////////////////////////////////////////////////////////////////
// initialize a "condition"...
extern
int
fthread_cond_init
(
@@ -192,6 +202,7 @@ fthread_cond_init
////////////////////////////////////////////////////////////////////////////////////
// destroy a "condition"...
extern
int
fthread_cond_destroy
(
@@ -205,6 +216,7 @@ fthread_cond_destroy
////////////////////////////////////////////////////////////////////////////////////
// 'signal' a "condition"... (releases ONE waiting thread)
extern
int
fthread_cond_signal
(
@@ -218,6 +230,7 @@ fthread_cond_signal
////////////////////////////////////////////////////////////////////////////////////
// 'broadcast' a "condition"... (releases ALL waiting threads)
extern
int
fthread_cond_broadcast
(
@@ -231,6 +244,7 @@ fthread_cond_broadcast
////////////////////////////////////////////////////////////////////////////////////
// wait for a "condition" to occur...
extern
int
fthread_cond_wait
(
@@ -245,6 +259,7 @@ fthread_cond_wait
////////////////////////////////////////////////////////////////////////////////////
// wait (but not forever) for a "condition" to occur...
extern
int
fthread_cond_timedwait
(