I prefer not defining this and just using boost::thread::hardware_concurrency() where appropriate. No magic number is hardcoded here, we're just replacing the boost name with a name our own. Also this is not a constant.