issue #2305: Using std::thread instead of pthread for ScriptingCore.
issue #2305: sched_yield(); --> std::this_thread::yield();
Merge pull request #3005 from dumganhar/iss2305-std-thread

issue #2305: Using std::thread instead of pthread for ScriptingCore.