mirror of
https://github.com/SDL-Hercules-390/hyperion.git
synced 2026-04-21 11:16:38 +02:00
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:
15
fthreads.h
15
fthreads.h
@@ -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
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user