home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Examples / ThreadedApp-1.0.1 / tprintf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-02  |  598 b   |  29 lines

  1. /*
  2.  *  $Id: tprintf.h,v 1.1 1997/04/02 18:28:57 croehrig Exp $
  3.  *
  4.  *  tprintf - a thread-safe interface to printf
  5.  */
  6.  
  7. #ifndef TPRINTF_H_INCLUDED
  8. #define TPRINTF_H_INCLUDED
  9.  
  10. extern void tprintf_init();
  11. /*
  12.  *   Initialize the printf lock.  Call before you fork new threads.
  13.  */
  14.  
  15. extern void tprintf( const char *fmt, ... );
  16. /*
  17.  *   Thread safe version of printf.
  18.  */
  19.  
  20. extern void dbgmsg( const char *fmt, ... );
  21. /*
  22.  *   Same as printf, but only prints if dbgtrace is TRUE.
  23.  */
  24.  
  25. /* Set this to TRUE to enable dbgmsg's.  It's FALSE by default. */
  26. extern int dbgtrace;
  27.  
  28. #endif /* TPRINTF_H_INCLUDED */
  29.