[SR-Users] Keep Number of Messages per Source
Alex Balashov
abalashov at evaristesys.com
Wed Aug 13 16:24:34 CEST 2014
On 08/13/2014 10:21 AM, AliReza Khoshgoftar Monfared wrote:
> Another concern is that, if I specify a number of child processes in my
> config (e.g. children=4), then will it be safe to increment the hash
> table entries in the route block upon receipt of messages? i.e will the
> table entries that reside in the shared memory be precise? or do I need
> to lock/unlock them while updating?
htable operations are thread-safe, as implemented under the hood. You do
not explicitly need to lock anything.
--
Alex Balashov - Principal
Evariste Systems LLC
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/
Please be kind to the English language:
http://www.entrepreneur.com/article/232906
More information about the sr-users
mailing list