diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2017-06-02 18:35:07 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2017-06-02 18:35:07 +0000 |
commit | 96ff9f8dfccef9bc138fdd50ff3ff8f910d4ece1 (patch) | |
tree | 782729e82d823bd8a5d65df316b1684fe835f15f /locks/beos | |
parent | 2a38adcde87a3fe074e5e998cb2e658d5084ce81 (diff) | |
download | libapr-96ff9f8dfccef9bc138fdd50ff3ff8f910d4ece1.tar.gz |
On Windows, OS2 and BEOS, the singluar lock mechanisms were already compatible
with timed locks, so there is no delta between DEFAULT and DEFAULT_TIMED.
Avoid gratuitous API changes to typical OS lock information.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1797415 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks/beos')
-rw-r--r-- | locks/beos/proc_mutex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/locks/beos/proc_mutex.c b/locks/beos/proc_mutex.c index d253ad5be..35a5e8f10 100644 --- a/locks/beos/proc_mutex.c +++ b/locks/beos/proc_mutex.c @@ -168,7 +168,7 @@ APR_DECLARE(const char *) apr_proc_mutex_lockfile(apr_proc_mutex_t *mutex) APR_DECLARE(apr_lockmech_e) apr_proc_mutex_mech(apr_proc_mutex_t *mutex) { - return APR_LOCK_DEFAULT_TIMED; + return APR_LOCK_DEFAULT; } APR_DECLARE(const char *) apr_proc_mutex_name(apr_proc_mutex_t *mutex) @@ -194,7 +194,7 @@ APR_DECLARE(apr_status_t) apr_os_proc_mutex_get_ex(apr_os_proc_mutex_t *ospmutex ospmutex->sem = pmutex->Lock; ospmutex->ben = pmutex->LockCount; if (mech) { - *mech = APR_LOCK_DEFAULT_TIMED; + *mech = APR_LOCK_DEFAULT; } return APR_SUCCESS; } @@ -236,7 +236,7 @@ APR_DECLARE(apr_status_t) apr_os_proc_mutex_put(apr_proc_mutex_t **pmutex, apr_os_proc_mutex_t *ospmutex, apr_pool_t *pool) { - return apr_os_proc_mutex_put_ex(pmutex, ospmutex, APR_LOCK_DEFAULT_TIMED, + return apr_os_proc_mutex_put_ex(pmutex, ospmutex, APR_LOCK_DEFAULT, 0, pool); } |