summaryrefslogtreecommitdiff
path: root/file_io/os2/open.c
diff options
context:
space:
mode:
authorbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>2001-12-30 14:30:58 +0000
committerbjh <bjh@13f79535-47bb-0310-9956-ffa450edef68>2001-12-30 14:30:58 +0000
commit5cd59bd4d5502c841ae0a0f5d520481c64d6f1bf (patch)
treeb65e5bcfa752a8801687576d240a7103ab253518 /file_io/os2/open.c
parent4f9f87c87fa9ec66b2574f14fa454099e6e0f17f (diff)
downloadlibapr-5cd59bd4d5502c841ae0a0f5d520481c64d6f1bf.tar.gz
OS/2: switch buffered file I/O over to using apr_thread_mutex_t instead of
apr_lock_t. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62685 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/os2/open.c')
-rw-r--r--file_io/os2/open.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/file_io/os2/open.c b/file_io/os2/open.c
index a80f4d56a..6664da334 100644
--- a/file_io/os2/open.c
+++ b/file_io/os2/open.c
@@ -99,8 +99,7 @@ APR_DECLARE(apr_status_t) apr_file_open(apr_file_t **new, const char *fname, apr
if (dafile->buffered) {
dafile->buffer = apr_palloc(cntxt, APR_FILE_BUFSIZE);
- rv = apr_lock_create(&dafile->mutex, APR_MUTEX, APR_INTRAPROCESS,
- APR_LOCK_DEFAULT, NULL, cntxt);
+ rv = apr_thread_mutex_create(&dafile->mutex, 0, cntxt);
if (rv)
return rv;
@@ -173,7 +172,7 @@ APR_DECLARE(apr_status_t) apr_file_close(apr_file_t *file)
}
if (file->buffered)
- apr_lock_destroy(file->mutex);
+ apr_thread_mutex_destroy(file->mutex);
return APR_SUCCESS;
}