chiark / gitweb /
mtimeout.c: Restructure timeout handling to use explicit machine.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 15 Dec 2011 00:55:01 +0000 (00:55 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 15 Dec 2011 01:12:43 +0000 (01:12 +0000)
commitf42ff973cd0e180e7decb57cd9818a3f18e635f7
tree915deec6c77ce437c1076af2cb44ae3a9478e543
parent753f86deeb79fb61d962b2066dde8c8cc31be85f
mtimeout.c: Restructure timeout handling to use explicit machine.

An upcoming change makes the timeout handling rather more fiddly.
Rather than have a huge pile of code to make it all work, encode the
timeout behaviour as explicit instructions to a simple virtual machine.
The instructions are assembled using preprocessor hacking.
mtimeout.c