Opened 13 years ago

Last modified 12 years ago

#4041 new defect

Use the thread safe version of proj if available

Reported by: tbonfort Owned by: warmerdam
Priority: normal Milestone: 6.2 release
Component: Proj Support Version: svn-trunk (development)
Severity: normal Keywords: proj thread safe mutex
Cc:

Description

recent proj versions have a thread safe api which would enable us to avoid acquiring the TLOCK_PROJ mutex before calls to pj_transform

Attachments (1)

proj-thread.diff (2.4 KB ) - added by tbonfort 13 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by tbonfort, 13 years ago

attaching an initial patch against trunk

by tbonfort, 13 years ago

Attachment: proj-thread.diff added

comment:2 by dmorissette, 12 years ago

Frank, this sounds like a great idea. Any reason not to do this?

comment:3 by warmerdam, 12 years ago

I'm eager to see this step. I'm not so confident of the patch on first review. I'll try to look at it again tonight. My impression was that we should be creating on proj context for each thread, rather than one for each PJ object.

Note: See TracTickets for help on using tickets.