Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
// Qt includes
Toshihiro Shimizu 890ddd
#include <qmetaobject></qmetaobject>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tfunctorinvoker.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//********************************************************************************
Toshihiro Shimizu 890ddd
//    TFunctorInvoker  definition
Toshihiro Shimizu 890ddd
//********************************************************************************
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
TFunctorInvoker *TFunctorInvoker::instance()
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
	static TFunctorInvoker theInstance;
Toshihiro Shimizu 890ddd
	return &theInstance;
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void TFunctorInvoker::invokeQueued(BaseFunctor *functor)
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
	QMetaObject::invokeMethod(
Toshihiro Shimizu 890ddd
		this, "invoke", Qt::QueuedConnection, Q_ARG(void *, functor));
Toshihiro Shimizu 890ddd
}