News for hackers. Stuff that matters.
Re:ErlMUD Commentary by bcrosby95 on Tuesday May 23, 2023 @06:07PM (#36051442)
Even rooms can be very tricky!

Consider this: bob is closing a door in rooma. A dragon is trying to move to rooma through that exit.

How do you code this such that bob never sees the dragon walk through a closed door? With no deadlocks?

The way I solved this is by creating a new process for coordinating multi-room actions. If a room is part of a coordinating process, it will queue everything from all other processes.

There are no comments on this comment yet.