Changeset 7507


Ignore:
Timestamp:
06/27/18 22:45:08 (3 weeks ago)
Author:
baker
Message:

move Earthworm threads API declarations from earthworm_complex_funcs.h to new file ew_threads.h (preparation for correcting threads API)

Location:
trunk/include
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/earthworm_complex_funcs.h

    r7498 r7507  
    1 /* 
    2  *   THIS FILE IS UNDER RCS - DO NOT MODIFY UNLESS YOU HAVE 
    3  *   CHECKED IT OUT USING THE COMMAND CHECKOUT. 
    4  * 
    5  *    $Id$ 
    6  * 
    7  *    Revision history: 
    8  *     $Log$ 
    9  *     Revision 1.7  2007/03/28 14:13:39  paulf 
    10  *     minor MACOSX #ifdefs added 
    11  * 
    12  *     Revision 1.6  2004/10/19 22:41:18  mark 
    13  *     Removed thread priority functions (not ready for prime time yet...) 
    14  * 
    15  *     Revision 1.5  2004/10/07 21:30:28  mark 
    16  *     Added thread priority functions 
    17  * 
    18  *     Revision 1.4  2003/11/25 20:37:56  dietz 
    19  *     *** empty log message *** 
    20  * 
    21  *     Revision 1.3  2003/11/25 00:42:59  dietz 
    22  *     Fixed problem with StartThread prototypes. Need to use the thr_ret definition because 
    23  *     Solaris and Windows have different function returns! 
    24  * 
    25  *     Revision 1.2  2003/11/11 18:06:16  mark 
    26  *     Fixed compile bug for Visual C++ (need parameter names for StartThread functions) 
    27  * 
    28  *     Revision 1.1  2001/04/06 21:03:30  davidk 
    29  *     Initial revision 
    30  * 
    31  * 
    32  ************************************************************/ 
     1/********************************************************************** 
     2 *  This file contains prototypes for earthworm libsrc                * 
     3 *  functions that require special type definitions, such as          * 
     4 *  (semaphores, threads, mutexes, sockets, etc.).                    * 
     5 *                                                                    * 
     6 *  If you have functions that only use primitive types and you       * 
     7 *  do not need any extra header files for them to compile, then      * 
     8 *  you can put them into earthworm_simple_funcs.h.                   * 
     9 *                                                                    * 
     10 *  Note, please try to keep functions from the same object           * 
     11 *  together in one section of one file.  So all of the sema_ew.c     * 
     12 *  stuff should go together.  Thank You!                             * 
     13 *  Davidk 2001/04/06                                                 * 
     14 **********************************************************************/ 
    3315 
    3416#ifndef EARTHWORM_COMPLEX_FUNCS_H 
    3517#define EARTHWORM_COMPLEX_FUNCS_H 
    36  
    37 /* This file contains prototypes for earthworm libsrc 
    38    functions that require special type definitions, such as 
    39    (semaphores, threads, mutexes, sockets, etc.). 
    40  
    41    If you have functions that only use primitive types and you 
    42    do not need any extra header files for them to compile, then 
    43    you can put them into earthworm_simple_funcs.h. 
    44  
    45    Note, please try to keep functions from the same object 
    46    together in one section of one file.  So all of the sema_ew.c 
    47    stuff should go together.  Thank You! 
    48    Davidk 2001/04/06 
    49 *************************************************************/ 
    5018 
    5119#include <stdarg.h> 
     
    5422   ********************************/ 
    5523#include "platform.h" 
     24#include "ew_threads.h"                 /* Earthworm threads API */ 
    5625 
    5726#if 0 /* OBSOLETE */ 
     
    6938 *   - DESTROY_SPECIFIC_SEMAPHORE_EW(semname) 
    7039 */ 
     40 
    7141#ifdef _WINNT 
    7242#define DECLARE_SPECIFIC_SEMAPHORE_EW(semname) sema_t semname 
     
    134104int sendall( SOCKET, const char *, long, int ); /* socket_ew.c  system-dependent */ 
    135105 
     106#if 0 /* OBSOLETE - use #include "ew_threads.h" for the Earthworm threads API */ 
    136107int  WaitThread( unsigned * );              /* threads_ew.c system-dependent */ 
    137108int  KillThread( unsigned int );            /* threads_ew.c system-dependent */ 
     
    139110int  StartThread( thr_ret fun(void *), unsigned stack_size, unsigned *thread_id ); 
    140111int  StartThreadWithArg( thr_ret fun(void *), void *arg, unsigned stack_size, unsigned *thread_id ); 
     112#endif 
    141113 
    142114#endif /* EARTHWORM_COMPLEX_FUNCS_H */ 
Note: See TracChangeset for help on using the changeset viewer.