Update CWThread.c