Il giorno 13/dic/2010, alle ore 17.59, [email protected] ha scritto: > Hello, > > how safe to share in async mode data in variables created with post_fork_hook? > > how safe so operations for: > 1. read only access > 2. write only access > 3. ready/write access > > so can I create one updateable object and share it between all requests in so > way? >
Theoretically if you use only python there should be no problem, as the GIL do not allow to access objects concurrently. If you post some code i could give you some advice, but if you need to lock some part you could use uwsgi.lock() and uwsgi.unlock() functions. -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
