ftp.nice.ch/pub/next/developer/objc/threads/ThreadedApp.1.0.s.tar.gz#/ThreadedApp-1.0/tprintf.h

This is tprintf.h in view mode; [Download] [Up]

/*
 *  tprintf - a thread-safe interface to printf
 */

#ifndef TPRINTF_H_INCLUDED
#define TPRINTF_H_INCLUDED

extern void tprintf_init();
/*
 *   Initialize the printf lock.  Call before you fork new threads.
 */

extern void tprintf( const char *fmt, ... );
/*
 *   Thread safe version of printf.
 */

extern void dbgmsg( const char *fmt, ... );
/*
 *   Same as printf, but only prints if dbgtrace is TRUE.
 */

/* Set this to TRUE to enable dbgmsg's.  It's FALSE by default. */
extern int dbgtrace;

#endif /* TPRINTF_H_INCLUDED */

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.