Using the Apache Portable Runtime in a Non-httpd Application
Garrett Rooney, Software Engineer, CollabNet
Date: Wednesday, July 28
Time: 10:45am - 11:30am
Location: Salon G
The Apache Portable Runtime gives C programmers an API for common system services and a useful collection of data structures. Rather than going through the pain of figuring out all the platform specific issues and the effort of writing the data structures and algorithms yourself, it makes more and more sense to simply use APR. This said, making effective use of APR is not as easy as one might like. There are a number of nontrivial issues that come up, specifically in a non-httpd based application, many of which the Subversion project has dealt with over the past few years. This presentation explains the biggest issues we have dealt with along with their solutions, so that you don't have to find them yourself.
Issues that will be covered include:
Why should you use APR in the first place?
How to do portable error checking.
Making effective use of memory pools.
What kinds of things does APR not abstract for you.
How to use threads portably.
How to help APR interact nicely with scripting languages.
How to deal with the versioning issues associated with APR.
© 2004, O'Reilly Media, Inc.