httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Life is hard, and then you die." <ron...@innovation.ch>
Subject apr_lock
Date Fri, 10 Sep 1999 07:06:39 GMT

I was just looking at apr_lock and noticed that ap_lock() was defined
as

  ap_status_t ap_lock(ap_lock_t *);

This seems to imply that only an exclusive lock can be acquired. Would
it be possible to instead implement the more general and useful
multiple-reader/single-writer scheme (as e.g. implemented in Ralf's mm
library)? I.e. something like

  typedef enum {APR_READ_ONLY, APR_READ_WRITE} ap_lockmode_e;
  ap_status_t ap_lock(ap_lock_t *, ap_lockmode_e);


  Cheers,

  Ronald


Mime
View raw message