Code Search for Developers
 
 
  

WaitRedShedThread.h from redshed at Krugle


Show WaitRedShedThread.h syntax highlighted

/****************************************************************************************
	WaitRedShedThread.h $Revision: 1.2 $
		<http://rentzsch.com/redshedthreads>
	
	Copyright © 2000-2002 Red Shed Software. All rights reserved.
	by Jonathan 'Wolf' Rentzsch (jon at redshed dot net)
	
	************************************************************************************/

#ifndef		_WaitRedShedThread_
#define		_WaitRedShedThread_

#include	"RedShedThreads.h"
#include	"OpenTransport.h"

#define		kOTEventMessage			(AtomicMessage)22
#define		kLastOTErrorCode		kOTCanceledErr
#define		kNotOTEventMessage		kLastOTErrorCode - 1
#define		kWaitOTMessageTimedOut	kNotOTEventMessage - 1
#define		kDelimiterNotFound		kWaitOTMessageTimedOut - 1

#ifdef		__cplusplus
extern	"C"	{
#endif	//	__cplusplus

	extern
	Boolean
WaitEventTask(
	RedShedThread	*thread,
	UInt32			sleep );

	extern
	void
WaitDeferredTask(
	RedShedThread	*thread );

	extern
	void
WaitTimeTask(
	RedShedThread	*thread,
	SInt32			sleep );

	extern
	void
WaitTimeDeferredTask(
	RedShedThread	*thread,
	SInt32			time );

	extern
	OSStatus
WaitOTEvent(
	RedShedThread	*thread,
	OTEventCode		*event,
	long			*cookie,
	SInt32			patience );

	extern
	pascal
	void
NotifyRedShedThread(
	void		*contextPtr,
	OTEventCode	code,
	OTResult	result,
	void		*cookie );

	extern
	OSStatus
WaitMPTask(
	RedShedThread	*thread );

#ifdef	__cplusplus
}
#endif

#endif	//	_WaitRedShedThread_



See more files for this project here

redshed

Code for Mac+WebObjects.

Project homepage: http://sourceforge.net/projects/redshed
Programming language(s): C,Java,Objective C
License: other

  CFMA5.h
  ThreadedFile.c
  ThreadedFile.h
  ThreadedOT.c
  ThreadedOT.h
  WaitRedShedThread.c
  WaitRedShedThread.h