Enhance threadsafety of Hooks and improve generally
authorclinton <clinton@unknownlamer.org>
Sat, 15 Nov 2008 21:09:17 +0000 (21:09 +0000)
committerclinton <clinton@unknownlamer.org>
Sat, 15 Nov 2008 21:09:17 +0000 (21:09 +0000)
commit7a9d1172e96378476f1299ab0b5f63cdf4960c57
tree7fb6e2b1a4edf9436e37e9608edd59441eacd83a
parent2d3af8a42df517d90041e89726e86931a5cf2bd6
Enhance threadsafety of Hooks and improve generally

* bot:addhook may now be called from within a hook
  - hook mutex is recursive
  - It is unspecified whether a newly added hook will first run on the
    current or next hook match; depending on the properties of the
    hook either may occur
* Use general sorted list utilities instead of pushing to the back and
  doing a full sort on each add
* Incidentally replace String usage with std::string
source/BotInterp.C
source/BotInterp.H