summaryrefslogtreecommitdiff
path: root/locks/beos/proc_mutex.c
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-12-29 23:14:22 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-12-29 23:14:22 +0000
commit4f9f87c87fa9ec66b2574f14fa454099e6e0f17f (patch)
treeccd3de96eba5c37b36a3b2b4f2438d151757188a /locks/beos/proc_mutex.c
parent715322934f6467641f88031f401014ab02491962 (diff)
downloadlibapr-4f9f87c87fa9ec66b2574f14fa454099e6e0f17f.tar.gz
roll the extra apr_lock_create_np() functionality into apr_lock_create()
and get rid of apr_lock_create_np(); apr_lock_create() has a new parameter for specifying the lock mechanism (or APR_LOCK_DEFAULT to let APR choose) (same for apr_proc_mutex_create_np() and apr_proc_mutex_create()) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62684 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks/beos/proc_mutex.c')
-rw-r--r--locks/beos/proc_mutex.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/locks/beos/proc_mutex.c b/locks/beos/proc_mutex.c
index bb4d403f3..94e6d8893 100644
--- a/locks/beos/proc_mutex.c
+++ b/locks/beos/proc_mutex.c
@@ -79,11 +79,16 @@ static apr_status_t _proc_mutex_cleanup(void * data)
APR_DECLARE(apr_status_t) apr_proc_mutex_create(apr_proc_mutex_t **mutex,
const char *fname,
+ apr_lockmech_e mech,
apr_pool_t *pool)
{
apr_proc_mutex_t *new;
apr_status_t stat = APR_SUCCESS;
+ if (mech != APR_LOCK_DEFAULT) {
+ return APR_ENOTIMPL;
+ }
+
new = (apr_proc_mutex_t *)apr_pcalloc(pool, sizeof(apr_proc_mutex_t));
if (new == NULL){
return APR_ENOMEM;
@@ -104,16 +109,6 @@ APR_DECLARE(apr_status_t) apr_proc_mutex_create(apr_proc_mutex_t **mutex,
return APR_SUCCESS;
}
-#if APR_HAS_CREATE_LOCKS_NP
-APR_DECLARE(apr_status_t) apr_proc_mutex_create_np(apr_proc_mutex_t **mutex,
- const char *fname,
- apr_lockmech_e_np mech,
- apr_pool_t *pool)
-{
- return APR_ENOTIMPL;
-}
-#endif
-
APR_DECLARE(apr_status_t) apr_proc_mutex_child_init(apr_proc_mutex_t **mutex,
const char *fname,
apr_pool_t *pool)