[mapserver-users] Thread Safety

kelly elton its.the.doc at gmail.com
Thu Nov 5 14:43:52 PST 2015


Yeah it's mapscript

On Thu, Nov 5, 2015, 5:42 PM Lime, Steve D (MNIT) <Steve.Lime at state.mn.us>
wrote:

> Is this for MapScript? Should really let Tamas chime in. A single mapObj
> instance is modified during the course of a request once ingested from the
> mapfile. For example, it holds a populated label cache and other changes
> made after it is loaded specific to a request. So I guess that means one
> mapObj per thread.
>
>
>
> *From:* kelly elton [mailto:its.the.doc at gmail.com]
> *Sent:* Thursday, November 05, 2015 4:35 PM
> *To:* Lime, Steve D (MNIT) <Steve.Lime at state.mn.us>;
> mapserver-users at lists.osgeo.org
> *Subject:* Re: [mapserver-users] Thread Safety
>
>
>
> To be sure, are you saying I can use a single map object for multiple
> threads, or will I need to have one map object per thread? What would you
> suggest?
>
>
>
> On Thu, Nov 5, 2015 at 5:33 PM Lime, Steve D (MNIT) <
> Steve.Lime at state.mn.us> wrote:
>
> You should be fine. I believe there are locks (mutex) around places where
> this is known to be a problem. I’ve never heard user reports of issues in
> this regard.
>
>
>
> Steve
>
>
>
> *From:* mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] *On
> Behalf Of *kelly elton
> *Sent:* Thursday, November 05, 2015 4:07 PM
> *To:* mapserver-users at lists.osgeo.org
> *Subject:* [mapserver-users] Thread Safety
>
>
>
> Say....if I have two processes using the mapserver dll, are they going to
> conflict?
>
> I'm noticing on the website it says "OGR layers: use unsafe CPL
> services"...In my map file I have 'CONNECTIONTYPE OGR'....what I do with
> the map object is project, and then draw to png, and that's about
> it....this isn't thread safe then? What about if I have multiple map
> objects, one per thread....is that thread safe?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20151105/94134b17/attachment.htm>


More information about the MapServer-users mailing list