apr_arch_thread_cond.h revision 251886
155682Smarkm/* Licensed to the Apache Software Foundation (ASF) under one or more
2233294Sstas * contributor license agreements.  See the NOTICE file distributed with
355682Smarkm * this work for additional information regarding copyright ownership.
455682Smarkm * The ASF licenses this file to You under the Apache License, Version 2.0
5233294Sstas * (the "License"); you may not use this file except in compliance with
655682Smarkm * the License.  You may obtain a copy of the License at
755682Smarkm *
855682Smarkm *     http://www.apache.org/licenses/LICENSE-2.0
9233294Sstas *
1055682Smarkm * Unless required by applicable law or agreed to in writing, software
1155682Smarkm * distributed under the License is distributed on an "AS IS" BASIS,
12233294Sstas * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1355682Smarkm * See the License for the specific language governing permissions and
1455682Smarkm * limitations under the License.
1555682Smarkm */
16233294Sstas
1755682Smarkm#ifndef THREAD_COND_H
1855682Smarkm#define THREAD_COND_H
1955682Smarkm
20233294Sstas#include "apr.h"
2155682Smarkm#include "apr_private.h"
2255682Smarkm#include "apr_general.h"
2355682Smarkm#include "apr_lib.h"
2455682Smarkm#include "apr_thread_mutex.h"
2555682Smarkm#include "apr_thread_cond.h"
2655682Smarkm#include "apr_pools.h"
2755682Smarkm
2855682Smarkm#if APR_HAVE_PTHREAD_H
2955682Smarkm#include <pthread.h>
3055682Smarkm#endif
3155682Smarkm
3255682Smarkm/* XXX: Should we have a better autoconf search, something like
3355682Smarkm * APR_HAS_PTHREAD_COND? -aaron */
3455682Smarkm#if APR_HAS_THREADS
3555682Smarkmstruct apr_thread_cond_t {
3655682Smarkm    apr_pool_t *pool;
3755682Smarkm    pthread_cond_t cond;
3855682Smarkm};
3955682Smarkm#endif
4055682Smarkm
4155682Smarkm#endif  /* THREAD_COND_H */
4255682Smarkm
4355682Smarkm