A brief file description. More...
#include <stdio.h>
#include "ink_defs.h"
#include <pthread.h>
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
class | x_pthread_mutexattr_t |
struct | ink_scoped_mutex |
Typedefs | |
typedef pthread_mutex_t | ink_mutex |
Functions | |
static int | ink_mutex_init (ink_mutex *m, const char *name) |
static int | ink_mutex_destroy (ink_mutex *m) |
static int | ink_mutex_acquire (ink_mutex *m) |
static int | ink_mutex_release (ink_mutex *m) |
static int | ink_mutex_try_acquire (ink_mutex *m) |
Variables | |
class x_pthread_mutexattr_t | _g_mattr |
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_mutex.h.
typedef pthread_mutex_t ink_mutex |
Definition at line 43 of file ink_mutex.h.
static int ink_mutex_acquire | ( | ink_mutex * | m | ) | [inline, static] |
Definition at line 91 of file ink_mutex.h.
Referenced by LogBufferList::add(), aio_queue_req(), aio_thread_main(), Log::change_configuration(), dequeue(), ProtectedQueue::dequeue_timed(), HttpClientSession::destroy(), ElevateAccess::elevate(), enqueue(), LogBufferList::get(), ConnectionCount::getCount(), ConnectionCount::incrementCount(), HttpSM::init(), ink_cluster_time(), ink_rwlock_rdlock(), ink_rwlock_unlock(), ink_rwlock_wrlock(), ink_scoped_mutex::ink_scoped_mutex(), HttpSM::kill_this(), EventNotify::lock(), Mutex_lock(), HttpClientSession::new_connection(), raw_stat_clear(), raw_stat_clear_count(), raw_stat_clear_sum(), raw_stat_sync_to_global(), rec_mutex_acquire(), RecConfigFileParse(), RecSyncConfigToTB(), LogCollationClientSM::send(), ProtectedQueue::signal(), and LogCollationClientSM::~LogCollationClientSM().
static int ink_mutex_destroy | ( | ink_mutex * | m | ) | [inline, static] |
Definition at line 85 of file ink_mutex.h.
Referenced by delete_queue(), ProxyMutex::free(), ink_rwlock_destroy(), rec_mutex_destroy(), EventNotify::~EventNotify(), and LogBufferList::~LogBufferList().
static int ink_mutex_init | ( | ink_mutex * | m, | |
const char * | name | |||
) | [inline, static] |
Definition at line 68 of file ink_mutex.h.
References _g_mattr, and x_pthread_mutexattr_t::attr.
Referenced by aio_init_fildes(), api_init(), create_queue(), Diags::Diags(), EventNotify::EventNotify(), HttpBodyFactory::HttpBodyFactory(), ProxyMutex::init(), init_HttpProxyServer(), initialize_all_global_stats(), ink_aio_init(), ink_prot_global_stat_t::ink_prot_global_stat_t(), ink_rwlock_init(), LogBufferList::LogBufferList(), LogObjectManager::LogObjectManager(), ProtectedQueue::ProtectedQueue(), rec_mutex_init(), RecAllocateRawStatBlock(), RecConfigFileInit(), and RecCoreInit().
static int ink_mutex_release | ( | ink_mutex * | m | ) | [inline, static] |
Definition at line 100 of file ink_mutex.h.
Referenced by LogBufferList::add(), aio_queue_req(), aio_thread_main(), Log::change_configuration(), ElevateAccess::demote(), dequeue(), ProtectedQueue::dequeue_timed(), HttpClientSession::destroy(), enqueue(), LogBufferList::get(), ConnectionCount::getCount(), ConnectionCount::incrementCount(), HttpSM::init(), ink_cluster_time(), ink_rwlock_rdlock(), ink_rwlock_unlock(), ink_rwlock_wrlock(), HttpSM::kill_this(), Mutex_unlock(), HttpClientSession::new_connection(), raw_stat_clear(), raw_stat_clear_count(), raw_stat_clear_sum(), raw_stat_sync_to_global(), rec_mutex_release(), RecConfigFileParse(), RecSyncConfigToTB(), LogCollationClientSM::send(), ProtectedQueue::signal(), ProtectedQueue::try_signal(), EventNotify::unlock(), ink_scoped_mutex::~ink_scoped_mutex(), and LogCollationClientSM::~LogCollationClientSM().
static int ink_mutex_try_acquire | ( | ink_mutex * | m | ) | [inline, static] |
Definition at line 109 of file ink_mutex.h.
Referenced by aio_queue_req(), Mutex_trylock(), Mutex_trylock_spin(), ProtectedQueue::try_signal(), and EventNotify::trylock().
Definition at line 30 of file ink_mutex.cc.
Referenced by ink_mutex_init().