apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: how to make mutex mechanism selection even more difficult to
Date Wed, 16 Apr 2003 12:30:26 GMT
Justin Erenkrantz wrote:
> How would we specify file-based mutexes?  Realizing that the majority of our 
> mutex create calls are passing in NULL right now, so that's not goodness for 
> all mutex types.  Guess we'd have to deal with those as needed.

Part of the SSLMutex stuff started me thinking about just this, and
about how we could streamline this mutex stuff. I was thinking about
a mechanism which follows the file-based Mutex stuff. For example,

     AcceptMutex sem:<path>
     SSLMutex file:<path>
     FooMutex default

where every mutex has a method and (optional) path. For those that
don't pass a path (or filename), we auto-create our own.

One issue which we need to resolve is whether we completely "honor"
the pathname, or whether we try to make it "unique" by tacking
on something at the end (ala the pid).

   Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
      "A society that will trade a little liberty for a little order
             will lose both and deserve neither" - T.Jefferson

View raw message