11590Srgrimes/* Licensed to the Apache Software Foundation (ASF) under one or more 21590Srgrimes * contributor license agreements. See the NOTICE file distributed with 31590Srgrimes * this work for additional information regarding copyright ownership. 41590Srgrimes * The ASF licenses this file to You under the Apache License, Version 2.0 51590Srgrimes * (the "License"); you may not use this file except in compliance with 61590Srgrimes * the License. You may obtain a copy of the License at 71590Srgrimes * 81590Srgrimes * http://www.apache.org/licenses/LICENSE-2.0 91590Srgrimes * 101590Srgrimes * Unless required by applicable law or agreed to in writing, software 111590Srgrimes * distributed under the License is distributed on an "AS IS" BASIS, 121590Srgrimes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 131590Srgrimes * See the License for the specific language governing permissions and 141590Srgrimes * limitations under the License. 151590Srgrimes */ 161590Srgrimes 171590Srgrimes#ifndef THREAD_MUTEX_H 181590Srgrimes#define THREAD_MUTEX_H 191590Srgrimes 201590Srgrimes#include "apr.h" 211590Srgrimes#include "apr_private.h" 221590Srgrimes#include "apr_general.h" 231590Srgrimes#include "apr_thread_mutex.h" 241590Srgrimes#include "apr_portable.h" 251590Srgrimes#include "apr_atomic.h" 261590Srgrimes 271590Srgrimes#if APR_HAVE_PTHREAD_H 281590Srgrimes#include <pthread.h> 291590Srgrimes#endif 301590Srgrimes 311590Srgrimes#if APR_HAS_THREADS 321590Srgrimesstruct apr_thread_mutex_t { 331590Srgrimes apr_pool_t *pool; 341590Srgrimes pthread_mutex_t mutex; 351590Srgrimes}; 361590Srgrimes#endif 371590Srgrimes 381590Srgrimes#endif /* THREAD_MUTEX_H */ 391590Srgrimes 401590Srgrimes