// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Inschedulerofthread.pas' rev: 10.00

#ifndef InschedulerofthreadHPP
#define InschedulerofthreadHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Inexception.hpp>	// Pascal unit
#include <Inbasecomponent.hpp>	// Pascal unit
#include <Inglobal.hpp>	// Pascal unit
#include <Inscheduler.hpp>	// Pascal unit
#include <Inthread.hpp>	// Pascal unit
#include <Intask.hpp>	// Pascal unit
#include <Inyarn.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Inschedulerofthread
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TInYarnOfThread;
class PASCALIMPLEMENTATION TInYarnOfThread : public Inyarn::TInYarn 
{
	typedef Inyarn::TInYarn inherited;
	
protected:
	Inscheduler::TInScheduler* FScheduler;
	Inthread::TInThreadWithTask* FThread;
	
public:
	__fastcall TInYarnOfThread(Inscheduler::TInScheduler* AScheduler, Inthread::TInThreadWithTask* AThread);
	__fastcall virtual ~TInYarnOfThread(void);
	__property Inthread::TInThreadWithTask* Thread = {read=FThread};
};


class DELPHICLASS TInSchedulerOfThread;
class PASCALIMPLEMENTATION TInSchedulerOfThread : public Inscheduler::TInScheduler 
{
	typedef Inscheduler::TInScheduler inherited;
	
protected:
	int FMaxThreads;
	Classes::TThreadPriority FThreadPriority;
	virtual void __fastcall InitComponent(void);
	
public:
	__fastcall virtual ~TInSchedulerOfThread(void);
	virtual Inthread::TInThreadWithTask* __fastcall NewThread(void);
	TInYarnOfThread* __fastcall NewYarn(Inthread::TInThreadWithTask* AThread = (Inthread::TInThreadWithTask*)(0x0));
	virtual void __fastcall StartYarn(Inyarn::TInYarn* AYarn, Intask::TInTask* ATask);
	virtual void __fastcall TerminateYarn(Inyarn::TInYarn* AYarn);
	
__published:
	__property int MaxThreads = {read=FMaxThreads, write=FMaxThreads, nodefault};
	__property Classes::TThreadPriority ThreadPriority = {read=FThreadPriority, write=FThreadPriority, default=3};
public:
	#pragma option push -w-inl
	/* TInBaseComponent.Create */ inline __fastcall TInSchedulerOfThread(Classes::TComponent* AOwner)/* overload */ : Inscheduler::TInScheduler(AOwner) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------

}	/* namespace Inschedulerofthread */
using namespace Inschedulerofthread;
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// Inschedulerofthread
