/*============================================================================= Name: ffUtil.h Abs: This include file contains prototype definitions for the the ff-aware IOC miscellaneous utilities pertaining to threads Auth: 09-SEP-2004, Debbie Rogind (drogind): Rev: 02 feb 2005, Debbie Rogind -----------------------------------------------------------------------------*/ #include "copyright_SLAC.h" /* SLAC copyright comments */ /*----------------------------------------------------------------------------- Mod: 29-Sep-2005, K. Luchini (LUCHINI) Remove ffIocStop macro 26-Aug-2005, K. Luchini (LUCHINI): Added macros ffIocStop(),ffGetThread() Added arg to ffCleanupThread() Remove macro ffStopThread() and add prototype for function 11-Jul-2005, K. Luchini (LUCHINI): Added prototypes for ffStopThread,ffCleanupThread and ffPrintMsgheader 08-Mar-2004, Ron MacKenzie: Change ffGetJobIndexByName() to ffGetJobEnumByName() 09-DEC-2004, diane fairley: Changed names, etc to meet coding standards =============================================================================*/ #ifndef ffUtil_H #define ffUtil_H #include "ffStructs.h" #include "ffTypes.h" /* for ffEnd */ #include "msgTypes.h" /* for msgheader_ts */ ffThread_te ffGetThreadEnumByTid(const epicsThreadId tid_ps); ffThread_te ffGetThreadEnumByName(const char * name_c); unsigned long ffGetThreadDestinationByTid(const epicsThreadId tid_ps); void ffCleanupThread(ffThread_te thread_e,int (*cleanupRoutine_pf)()); void ffStopThread (ffThread_te thread_e); #ifdef DEBUG_PRINT void ffPrintMsgheader(const msgheader_ts *msgheader, int debugFlag ); #else #define ffPrintMsgheader(msgheader,debugFlag) #endif #ifdef ffGlob_H #define ffGetThread(thread_e) ((((thread_e)>=ffExec) && (thread_e