diff options
author | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2000-03-15 12:11:07 +0000 |
---|---|---|
committer | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2000-03-15 12:11:07 +0000 |
commit | 9489543ff637ee1fabe78872eec3d3d7c9f7d3e9 (patch) | |
tree | d4c90558d107e0e75b13a217d5a367721db417d1 /locks | |
parent | fbb30744a0c798b47342c309c2c0c6d9495aa6a0 (diff) | |
download | libapr-9489543ff637ee1fabe78872eec3d3d7c9f7d3e9.tar.gz |
Add some missing functions into BeOS locks
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59708 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r-- | locks/beos/crossproc.c | 5 | ||||
-rw-r--r-- | locks/beos/locks.c | 33 |
2 files changed, 38 insertions, 0 deletions
diff --git a/locks/beos/crossproc.c b/locks/beos/crossproc.c index 8150b088f..c83c39ecf 100644 --- a/locks/beos/crossproc.c +++ b/locks/beos/crossproc.c @@ -122,3 +122,8 @@ ap_status_t destroy_inter_lock(ap_lock_t *lock) } return stat; } + +ap_status_t child_init_lock(struct lock_t **lock, ap_context_t *cont, char *fname) +{ + return APR_SUCCESS; +} diff --git a/locks/beos/locks.c b/locks/beos/locks.c index 1f252f1bb..3c5cb12d4 100644 --- a/locks/beos/locks.c +++ b/locks/beos/locks.c @@ -135,4 +135,37 @@ ap_status_t ap_destroy_lock(ap_lock_t *lock) return APR_SUCCESS; } +ap_status_t ap_child_init_lock(struct lock_t **lock, char *fname, ap_context_t *cont) +{ + ap_status_t stat; + if ((*lock)->scope != APR_CROSS_PROCESS) { + if ((stat = child_init_lock(lock, cont, fname)) != APR_SUCCESS) { + return stat; + } + } + return APR_SUCCESS; +} + +ap_status_t ap_get_lockdata(struct lock_t *lock, char *key, void *data) +{ + if (lock != NULL) { + return ap_get_userdata(data, key, lock->cntxt); + } + else { + data = NULL; + return APR_ENOLOCK; + } +} + +ap_status_t ap_set_lockdata(struct lock_t *lock, void *data, char *key, + ap_status_t (*cleanup) (void *)) +{ + if (lock != NULL) { + return ap_set_userdata(data, key, cleanup, lock->cntxt); + } + else { + data = NULL; + return APR_ENOLOCK; + } +} |