A brief file description. More...
#include "ink_config.h"
#include "ink_rwlock.h"
Go to the source code of this file.
Functions | |
int | ink_rwlock_init (ink_rwlock *rw) |
int | ink_rwlock_destroy (ink_rwlock *rw) |
int | ink_rwlock_rdlock (ink_rwlock *rw) |
int | ink_rwlock_wrlock (ink_rwlock *rw) |
int | ink_rwlock_unlock (ink_rwlock *rw) |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file ink_rwlock.cc.
int ink_rwlock_destroy | ( | ink_rwlock * | rw | ) |
Definition at line 58 of file ink_rwlock.cc.
References ink_cond_destroy(), ink_mutex_destroy(), ink_rwlock::rw_condreaders, ink_rwlock::rw_condwriters, RW_MAGIC, ink_rwlock::rw_magic, ink_rwlock::rw_mutex, ink_rwlock::rw_nwaitreaders, ink_rwlock::rw_nwaitwriters, and ink_rwlock::rw_refcount.
int ink_rwlock_init | ( | ink_rwlock * | rw | ) |
Definition at line 32 of file ink_rwlock.cc.
References ink_cond_init(), ink_mutex_init(), ink_rwlock::rw_condreaders, ink_rwlock::rw_condwriters, ink_rwlock::rw_magic, ink_rwlock::rw_mutex, ink_rwlock::rw_nwaitreaders, ink_rwlock::rw_nwaitwriters, and ink_rwlock::rw_refcount.
Referenced by RecCoreInit().
int ink_rwlock_rdlock | ( | ink_rwlock * | rw | ) |
Definition at line 79 of file ink_rwlock.cc.
References ink_cond_wait(), ink_mutex_acquire(), ink_mutex_release(), ink_rwlock::rw_condreaders, RW_MAGIC, ink_rwlock::rw_magic, ink_rwlock::rw_mutex, ink_rwlock::rw_nwaitreaders, ink_rwlock::rw_nwaitwriters, and ink_rwlock::rw_refcount.
Referenced by RecGetRecord_Xmalloc(), RecGetRecordAccessType(), RecGetRecordCheckExpr(), RecGetRecordCheckType(), RecGetRecordDataType(), RecGetRecordDefaultDataString_Xmalloc(), RecGetRecordOrderAndId(), RecGetRecordPersistenceType(), RecGetRecordString(), RecGetRecordType(), RecGetRecordUpdateType(), RecRegisterConfigUpdateCb(), RecRegisterRawStatSyncCb(), RecSetRecordAccessType(), and RecSyncConfigToTB().
int ink_rwlock_unlock | ( | ink_rwlock * | rw | ) |
Definition at line 138 of file ink_rwlock.cc.
References ink_cond_broadcast(), ink_cond_signal(), ink_mutex_acquire(), ink_mutex_release(), ink_release_assert, ink_rwlock::rw_condreaders, ink_rwlock::rw_condwriters, RW_MAGIC, ink_rwlock::rw_magic, ink_rwlock::rw_mutex, ink_rwlock::rw_nwaitreaders, ink_rwlock::rw_nwaitwriters, and ink_rwlock::rw_refcount.
Referenced by RecForceInsert(), RecGetRecord_Xmalloc(), RecGetRecordAccessType(), RecGetRecordCheckExpr(), RecGetRecordCheckType(), RecGetRecordDataType(), RecGetRecordDefaultDataString_Xmalloc(), RecGetRecordOrderAndId(), RecGetRecordPersistenceType(), RecGetRecordString(), RecGetRecordType(), RecGetRecordUpdateType(), RecReadConfigFile(), RecReadStatsFile(), RecRegisterConfig(), RecRegisterConfigUpdateCb(), RecRegisterRawStatSyncCb(), RecRegisterStat(), RecSetRecord(), RecSetRecordAccessType(), RecSetSyncRequired(), and RecSyncConfigToTB().
int ink_rwlock_wrlock | ( | ink_rwlock * | rw | ) |
Definition at line 109 of file ink_rwlock.cc.
References ink_cond_wait(), ink_mutex_acquire(), ink_mutex_release(), ink_rwlock::rw_condwriters, RW_MAGIC, ink_rwlock::rw_magic, ink_rwlock::rw_mutex, ink_rwlock::rw_nwaitwriters, and ink_rwlock::rw_refcount.
Referenced by RecForceInsert(), RecReadConfigFile(), RecReadStatsFile(), RecRegisterConfig(), RecRegisterStat(), RecSetRecord(), and RecSetSyncRequired().