]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commit
rss plugin: prevent deadlock between save and watcher threads.
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 27 Aug 2007 22:51:42 +0000 (22:51 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 27 Aug 2007 22:51:42 +0000 (22:51 +0000)
commit088cea5b9473cbf5796aac0e6104442138a11f07
tree20f555b6a4f0274416d8afb87ee9fe0ac595c249
parentbbf05f99728a39280a19d60cc428a40b2f094ce5
rss plugin: prevent deadlock between save and watcher threads.

Since the timer fix in [1035], rescheduling ticks the timer, which could cause the timed saving to trigger while a feed mutex was being held. Fix by moving the feed watcher rescheduling out of the mutex synchronization.

Also move other calculations out to hold the mutex for as little as necessary.
data/rbot/plugins/rss.rb