diff --git a/Classes/JcWallet.cpp b/Classes/JcWallet.cpp index 889f1a5..ae08e8c 100644 --- a/Classes/JcWallet.cpp +++ b/Classes/JcWallet.cpp @@ -31,8 +31,6 @@ NS_CC_BEGIN std::mutex mtx; std::list > tasks; }; - // const char *methodName, int paramCount, char **paramList - // run in server thread loop void flush_tasks_in_server_loop_cb(uv_async_t *asyn) { @@ -67,19 +65,6 @@ NS_CC_BEGIN uv_async_send(asyn); } -// #define RUN_IN_GAMETHREAD(task) \ -// do { \ -// cocos2d::Application::getInstance()->getScheduler()->performFunctionInCocosThread([=]() { \ -// task; \ -// });\ -// } while(0) - -#define DISPATCH_CALLBACK_IN_GAMETHREAD() do {\ - data->setCallback([callback](const std::string& msg) { \ - cocos2d::log("call back"); \ - }); \ - }while(0) - #define RUN_IN_SERVERTHREAD(task) do { \ schedule_task_into_server_thread_task_queue(&gasync, [=](){ \ task; \