Files
CC-Tweaked/projects/web
Jonathan Coates 832800babe Change Resource to explicitly encode a state machine
- Add a new LockedReference class that models Rusts' Mutex class,
   making the @GuardedBy and a ReentrantLock pattern a little less
   verbose.

   Of course, we don't get any of the lifetime checking here. Gosh, I
   miss Rust's ownership model so much when writing concurrent code.

 - Rewrite Resource to work with explicit (immutable) states, and
   transitions between them. Each transition runs within the mutex
   (rather than using atomics), so it's slightly easier to reason about
   possible behaviours.

 - Update our various resources (HTTPRequest, Websocket, CheckURL) to
   use this new state machine system.

 - Merge ResourceQueue and ResourceGroup into one class.
2026-10-09 18:35:17 +01:00
..
2026-09-12 10:54:59 +01:00
2026-04-07 22:10:14 +01:00