[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: ra_svn and thread-safety/initialization

From: <rbb_at_rkbloom.net>
Date: 2003-05-31 19:16:18 CEST

On Sat, 31 May 2003, Greg Hudson wrote:

> My problem is that APR doesn't provide any kind of locking to ensure
> that an initialization step is performed once. It has mutexes, but no
> static mutex initializers. It has the concept of a "once", but again,
> there's no static initializer for a once.

Why can't you use apr_thread_once? Just put the initialization steps in a
function that is called through apr_thread_once, and you will be
guaranteed that the function will be called one time and only one time.

Ryan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 31 19:04:34 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.