On Feb 9, 10:19 am, Damian <[email protected]> wrote:
> app globals is not thread safe - if you write to it concurrently you
> will be in trouble.  I keep a lot of stuff in app globals that is set
> on startup and never changed.

Thanks for that :(

I'm wondering... maybe there is a way to handle this with semaphores ?

ie - one could 'queue' up some variables to be updated into
app_globals, and set a semaphore.  eventually a process would come
in , see the queued request, and act on it. that could eliminate race
conditions.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to