Atomic ets
Ulf Wiger (AL/EAB)
ulf.wiger@REDACTED
Tue Dec 13 16:06:47 CET 2005
Thomas Lindgren wrote:
>
> 1. Am I being dense in writing my ets code? Are there simple,
> useful ways to write ets code that avoids the problem of
> getting preempted between, say, a lookup and an insert?
Well, yes (on the second question). You can make sure that
all updates to a table are serialized using e.g. a gen_server.
You can then pass the server an update fun if you want.
/Uffe
More information about the erlang-questions
mailing list