Q: how to solve this concurrency problem ?

2009-09-20 Thread Roger Gilliar
Hi, im not sure how to solve the following problem: (defn parse [outstream-agent xml] (let [content (clojure.xml/parse (ByteArrayInputStream. (. xml getBytes))) first-element (:tag content) ] (try (if @*is-syncing*

Re: Q: how to solve this concurrency problem ?

2009-09-20 Thread Roger Gilliar
Am 21.09.2009 um 06:50 schrieb Roger Gilliar: > > 2.) I modify the code like this: > > (if cache > (cache-message content) > (if (mesage-cache-agent-is-running) > (send-of *message-cache-agent* send-last-message-with > content > ) > --- Thi