If I leave fully-cooked food (particularly meat) out at warm temperature - say on the counter or in a crock pot that's been turned off - how long will it stay safe to eat?

Does it make any difference if I re-cook the food afterward?