移除无用代码

This commit is contained in:
cebgcontract 2022-07-20 16:43:57 +08:00
parent c221611d78
commit 8126373f2c

View File

@ -31,8 +31,6 @@ NS_CC_BEGIN
std::mutex mtx;
std::list<std::function<void()> > 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; \