Improve commentary in timeout.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Jan 2021 03:02:35 +0000 (22:02 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Jan 2021 03:09:16 +0000 (22:09 -0500)
commit9486e7b666fd113f043d5f091fd42bc1ef72acd8
tree84e5d5a84a515b8ee2c9e14308b2999ac6727633
parent55fe26a4b580b17d721c5accb842cc6a08295273
Improve commentary in timeout.c.

On re-reading I realized that I'd missed one race condition in the new
timeout code.  It's safe, but add a comment explaining it.

Discussion: https://postgr.es/m/CA+hUKG+o6pbuHBJSGnud=TadsuXySWA7CCcPgCt2QE9F6_4iHQ@mail.gmail.com
src/backend/utils/misc/timeout.c