use Schedule::performFunctionInCocosThread
Merge pull request #4442 from minggo/use-schedule

use Schedule::performFunctionInCocosThread