移除无用代码
This commit is contained in:
parent
c221611d78
commit
8126373f2c
@ -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; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user