Repository navigation
Commit 08a10ef
committed
[TEST] Time only the quit in ElegantQuitQuick, and bound it where the two outcomes are
The case exists to catch a destruction that lets the polling background thread
sleep out scheduled_delay_milliseconds_ instead of waking it. Measured on an idle
host, that quit costs 0.1 to 0.5 ms; measured with the wakeup removed, it costs
256.5 to 256.9 ms, and there is nothing in between. The bound sat at 20 ms, which
is close enough to the fast outcome that a host adding scheduling delay to a sub
millisecond operation trips it. The 21 ms failure reported on #4265 is that, and
the 247 ms one is a quit that really did wait the poll out.
100 ms partitions the same two sets: over 24 runs of each arm, no measurement
landed between 20 and 100 ms, so the wider bound gives up no detection.
The window now covers the quit alone. The request is finished first through the
file's own waitForRequests(), which also removes the fixed 10 ms sleep that was
standing in for it.
Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>1 parent 312acb6 commit 08a10ef
1 file changed
Lines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
926 | 926 | | |
927 | 927 | | |
928 | 928 | | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
929 | 932 | | |
930 | 933 | | |
| 934 | + | |
931 | 935 | | |
932 | 936 | | |
933 | 937 | | |
| |||
936 | 940 | | |
937 | 941 | | |
938 | 942 | | |
939 | | - | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
940 | 950 | | |
941 | 951 | | |
942 | 952 | | |
943 | | - | |
944 | | - | |
945 | | - | |
946 | 953 | | |
947 | | - | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
948 | 957 | | |
949 | 958 | | |
950 | | - | |
951 | | - | |
952 | 959 | | |
953 | 960 | | |
954 | 961 | | |
| |||
0 commit comments