On 22/05/13 18:54, Kai Krueger wrote:
On 05/22/2013 11:27 AM, Tom Hughes wrote:


Can the stores array not just be allocated in the child_init hook?
>
I can't remember the details, but I believe child_init hook did not do
at all what I wanted. I think it might have again only been per process
and not per thread.

It is per-process yes, but that is the point - you do the allocation of the stores array once for the process and save it with userdata_put and then you only have to retrieve it in the per-thread context when the request comes in.

Tom

--
Tom Hughes ([email protected])
http://compton.nu/

_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev

Reply via email to