rem: return (wPtr->thrPtr ? wPtr->thrPtr : NsGetThread2());
add: thrPtr = wPtr->thrPtr; if (thrPtr == NULL) { thrPtr = NsNewThread(); NsSetThread(thrPtr); } return thrPtr;
context: NsGetThread(void){    WinThread *wPtr = GetWinThread();        return (wPtr->thrPtr ? wPtr->thrPtr : NsGetThread2());}