timeadd, timediff patch

From: d. hall (dhall@OOI.NET)
Date: 08/11/98


You discussed threading Circle on the list, I also noticed in the recent
version you'd changed the timeadd and timediff function, using static
variables.

Instead of using a malloc'ed timeval structure (which would eventually have
to be freed), I figured it would be better to just supply the structure,
and back reference it.  Herein is a patch for comm.c that should fix up the
thread-safe problem, it only required one instance in which a temp variable
was required to store from one timediff to the next.

d.


+------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST