Update g_thread.cpp