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
Shinya Kitaoka 120a6e
TFunctorInvoker *TFunctorInvoker::instance() {
Shinya Kitaoka 120a6e
  static TFunctorInvoker theInstance;
Shinya Kitaoka 120a6e
  return &theInstance;
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//-----------------------------------------------------------------
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
void TFunctorInvoker::invokeQueued(BaseFunctor *functor) {
Shinya Kitaoka 120a6e
  QMetaObject::invokeMethod(this, "invoke", Qt::QueuedConnection,
Shinya Kitaoka 120a6e
                            Q_ARG(void *, functor));
Toshihiro Shimizu 890ddd
}