Idea on subroutine reentrancy and database transaction
Marc Lehmann
schmorp at schmorp.de
Sun Apr 14 04:07:59 CEST 2013
On Tue, Apr 09, 2013 at 10:25:32AM +0800, Michael Fung <mike at 3open.org> wrote:
> Silly me, I forgot mutex and semaphore that I learnt from thread
> programming. That's just what I wanted. But I prefer to use an
> AnyEvent approach so that no need to load Coro:
Well, I _did_ explain how to do that with AnyEvent, but of coruse there is
nothing wrong with using an existing module.
> I did read the Coro docs last time per your suggestion but found the
> concept a bit hard to understand.
Well, if I had to chose, I'd rather people knew event programming than
thread programming.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the anyevent
mailing list