2021-03-07 05:58:59 +01:00

89 lines
2.7 KiB
C++

// Generated by Haxe 4.0.5
#ifndef INCLUDED_lime_system_ThreadPool
#define INCLUDED_lime_system_ThreadPool
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_CLASS2(lime,app,_Event_Dynamic_Void)
HX_DECLARE_CLASS2(lime,_hx_system,ThreadPool)
HX_DECLARE_CLASS2(sys,thread,Deque)
namespace lime{
namespace _hx_system{
class HXCPP_CLASS_ATTRIBUTES ThreadPool_obj : public hx::Object
{
public:
typedef hx::Object super;
typedef ThreadPool_obj OBJ_;
ThreadPool_obj();
public:
enum { _hx_ClassId = 0x3ef61f6a };
void __construct(hx::Null< int > __o_minThreads,hx::Null< int > __o_maxThreads);
inline void *operator new(size_t inSize, bool inContainer=true,const char *inName="lime.system.ThreadPool")
{ return hx::Object::operator new(inSize,inContainer,inName); }
inline void *operator new(size_t inSize, int extra)
{ return hx::Object::operator new(inSize+extra,true,"lime.system.ThreadPool"); }
static hx::ObjectPtr< ThreadPool_obj > __new(hx::Null< int > __o_minThreads,hx::Null< int > __o_maxThreads);
static hx::ObjectPtr< ThreadPool_obj > __alloc(hx::Ctx *_hx_ctx,hx::Null< int > __o_minThreads,hx::Null< int > __o_maxThreads);
static void * _hx_vtable;
static Dynamic __CreateEmpty();
static Dynamic __Create(hx::DynamicArray inArgs);
//~ThreadPool_obj();
HX_DO_RTTI_ALL;
hx::Val __Field(const ::String &inString, hx::PropertyAccess inCallProp);
hx::Val __SetField(const ::String &inString,const hx::Val &inValue, hx::PropertyAccess inCallProp);
void __GetFields(Array< ::String> &outFields);
static void __register();
void __Mark(HX_MARK_PARAMS);
void __Visit(HX_VISIT_PARAMS);
bool _hx_isInstanceOf(int inClassId);
::String __ToString() const { return HX_("ThreadPool",e6,58,d6,3c); }
int currentThreads;
::lime::app::_Event_Dynamic_Void doWork;
int maxThreads;
int minThreads;
::lime::app::_Event_Dynamic_Void onComplete;
::lime::app::_Event_Dynamic_Void onError;
::lime::app::_Event_Dynamic_Void onProgress;
::lime::app::_Event_Dynamic_Void onRun;
bool _hx___synchronous;
int _hx___workCompleted;
::sys::thread::Deque _hx___workIncoming;
int _hx___workQueued;
::sys::thread::Deque _hx___workResult;
void queue( ::Dynamic state);
::Dynamic queue_dyn();
void sendComplete( ::Dynamic state);
::Dynamic sendComplete_dyn();
void sendError( ::Dynamic state);
::Dynamic sendError_dyn();
void sendProgress( ::Dynamic state);
::Dynamic sendProgress_dyn();
void runWork( ::Dynamic state);
::Dynamic runWork_dyn();
void _hx___doWork();
::Dynamic _hx___doWork_dyn();
void _hx___update(int deltaTime);
::Dynamic _hx___update_dyn();
};
} // end namespace lime
} // end namespace system
#endif /* INCLUDED_lime_system_ThreadPool */