Tamir Duberstein
16fbfe5574
Notify running turn watchers only on count changes ( #38170 )
...
## What changed
- Publish the running-turn count while holding the thread state lock so updates
remain ordered with their corresponding state mutations.
- Use `watch::Sender::send_if_modified` to avoid waking subscribers when a
thread status update leaves the count unchanged.
## Testing
- Add a test that verifies turn start and shutdown notify the count watcher,
while a permission request during the turn does not.
GitOrigin-RevId: 50fe6bcfb2cac7392715263cfdde0f382fe21502
2026-08-12 11:07:46 +00:00
..
2026-07-23 22:39:28 +00:00
2026-08-11 03:35:45 +00:00
2026-08-12 00:01:01 +00:00
2026-04-29 19:56:41 +00:00
2026-07-23 01:00:35 +00:00
2026-07-22 14:16:51 +00:00
2026-05-20 17:30:19 +00:00
2026-07-07 17:43:19 -07:00
2026-08-10 19:26:52 +00:00
2026-07-24 04:37:01 +00:00
2026-07-24 04:37:01 +00:00
2026-07-29 18:29:26 +00:00
2026-08-10 11:22:55 +00:00
2026-08-11 19:16:15 +00:00
2026-08-10 11:22:55 +00:00
2026-08-11 19:16:15 +00:00
2026-06-08 10:20:54 -07:00
2026-06-08 10:20:54 -07:00
2026-06-27 16:42:03 -07:00
2026-07-18 23:22:13 +00:00
2026-07-11 01:11:37 +00:00
2026-07-24 15:06:02 +00:00
2026-05-07 15:44:43 -07:00
2026-08-10 21:00:00 +00:00
2026-07-07 17:05:05 -07:00
2026-03-27 19:00:44 -07:00
2026-05-28 23:09:55 -07:00
2026-03-19 05:24:09 +00:00
2026-06-23 00:43:56 +00:00
2026-08-11 19:16:15 +00:00
2026-08-11 19:16:15 +00:00
2026-08-11 19:16:15 +00:00
2026-08-11 19:16:15 +00:00
2026-08-06 03:11:42 +00:00
2026-07-29 21:21:15 +00:00
2026-08-07 16:57:47 +00:00
2026-07-09 02:32:10 +00:00
2026-07-09 02:32:10 +00:00
2026-08-07 11:26:01 +00:00
2026-08-07 00:28:32 +00:00
2026-08-07 18:38:24 +00:00
2026-08-11 18:35:03 +00:00
2026-08-07 18:38:24 +00:00
2026-02-27 12:45:59 -08:00
2026-08-11 10:43:11 +00:00
2026-08-10 19:26:52 +00:00
2026-08-12 11:07:46 +00:00
2026-07-14 00:38:04 +00:00
2026-07-29 22:00:20 +00:00