Index: libs/aphex/include/aphex.h =================================================================== RCS file: /cvsroot/ferite/ferite/libs/aphex/include/aphex.h,v retrieving revision 1.21 diff -u -r1.21 aphex.h --- libs/aphex/include/aphex.h 5 May 2003 16:54:42 -0000 1.21 +++ libs/aphex/include/aphex.h 18 Oct 2003 23:19:01 -0000 @@ -114,6 +114,19 @@ } AphexMutex; +typedef struct __aphex_event +{ +# ifdef USE_PTHREAD + pthread_mutex_t mutex; + pthread_mutexattr_t attr; + pthread_cond_t cond; +# else +// XXX: darwin/cygwin/solaris/win32 +# endif +} +AphexEvent; + + /* Disk Stuff */ APHEX_API char *aphex_file_exists_path( char *pf, ... ); @@ -163,6 +176,13 @@ APHEX_API void aphex_mutex_destroy( AphexMutex *mutex ); APHEX_API int aphex_mutex_lock( AphexMutex *mutex ); APHEX_API int aphex_mutex_unlock( AphexMutex *mutex ); + +APHEX_API AphexEvent *aphex_event_create(); +APHEX_API void aphex_event_destroy( AphexEvent *event ); +APHEX_API int aphex_event_signal( AphexEvent *event ); +APHEX_API int aphex_event_wait( AphexEvent *event ); +APHEX_API int aphex_event_timedwait( AphexEvent *event, int seconds); + /* notify/poll stuff */