use C++ limits to get max uint32, update thread status