Main Page Class Hierarchy Compound List File List Compound Members File Members

# earthworm_complex_funcs.h

Go to the documentation of this file.

    00001 /*
    00002  *   THIS FILE IS UNDER RCS - DO NOT MODIFY UNLESS YOU HAVE
    00003  *   CHECKED IT OUT USING THE COMMAND CHECKOUT.
    00004  *
    00005  *    $Id: earthworm__complex__funcs_8h-source.html 2161 2006-05-19 16:55:03Z paulf $
    00006  *
    00007  *    Revision history:
    00008  *     $Log$
    00008  *     Revision 1.1  2006/05/19 16:55:01  paulf
    00008  *     first inclusion
    00008  *
    00009  *     Revision 1.1  2001/04/06 21:03:30  davidk
    00010  *     Initial revision
    00011  *
    00012  *
    00013  ************************************************************/
    00014
    00015 #ifndef EARTHWORM_COMPLEX_FUNCS_H
    00016 # define EARTHWORM_COMPLEX_FUNCS_H
    00017
    00018 /* This file contains prototypes for earthworm libsrc
    00019    functions that require special type definitions, such as
    00020    (semaphores, threads, mutexes, sockets, etc.).
    00021
    00022    If you have functions that only use primitive types and you
    00023    do not need any extra header files for them to compile, then
    00024    you can put them into earthworm_simple_funcs.h.
    00025
    00026    Note, please try to keep functions from the same object
    00027    together in one section of one file.  So all of the sema_ew.c
    00028    stuff should go together.  Thank You!
    00029    Davidk 2001/04/06
    00030 *************************************************************/
    00031
    00032 /* System-dependent stuff goes here
    00033    ********************************/
    00034 #include <platform.h>
    00035
    00036 void CreateSemaphore_ew( void );            /* sema_ew.c    system-dependent */
    00037 void PostSemaphore   ( void );              /* sema_ew.c    system-dependent */
    00038 void WaitSemPost     ( void );              /* sema_ew.c    system-dependent */
    00039 void DestroySemaphore( void );              /* sema_ew.c    system-dependent */
    00040 void CreateMutex_ew  ( void );              /* sema_ew.c    system-dependent */
    00041 void RequestMutex( void );                  /* sema_ew.c    system-dependent */
    00042 void ReleaseMutex_ew( void );               /* sema_ew.c    system-dependent */
    00043 void CloseMutex( void );                    /* sema_ew.c    system-dependent */
    00044 void CreateSpecificMutex( mutex_t * );
    00045 void CloseSpecificMutex( mutex_t * );
    00046 void RequestSpecificMutex( mutex_t * );
    00047 void ReleaseSpecificMutex( mutex_t * );
    00048
    00049                                             /* sendmail.c   system-dependent */
    00050 void SocketSysInit( void   );               /* socket_ew.c  system-dependent */
    00051 void SocketClose  ( int    );               /* socket_ew.c  system-dependent */
    00052 void SocketPerror ( char * );               /* socket_ew.c  system-dependent */
    00053 int sendall( int, const char *, long, int );/* socket_ew.c  system-dependent */
    00054
    00055 int  WaitThread( unsigned * );              /* threads_ew.c system-dependent */
    00056 int  KillThread( unsigned int );            /* threads_ew.c system-dependent */
    00057 int  KillSelfThread( void );                /* threads_ew.c system-dependent */
    00058 int  StartThread( thr_ret (void *), unsigned int, unsigned int * );
    00059 int  StartThreadWithArg( thr_ret (void *), void *, unsigned, unsigned * );
    00060 //int  StartThread( thr_ret fun(void *), unsigned int, unsigned int * );
    00061 //int  StartThreadWithArg( thr_ret fun(void *), void *, unsigned, unsigned * );
    00062
    00063 #endif /* EARTHWORM_COMPLEX_FUNCS_H */