/usr/src/redhat/BUILD/httpd-2.2.3/srclib/apr/include/apr_atomic.h

説明を見る。
00001 /* Copyright 2000-2005 The Apache Software Foundation or its licensors, as
00002  * applicable.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef APR_ATOMIC_H
00018 #define APR_ATOMIC_H
00019 
00025 #include "apr.h"
00026 #include "apr_pools.h"
00027 
00028 #ifdef __cplusplus
00029 extern "C" {
00030 #endif
00031 
00044 APR_DECLARE(apr_status_t) apr_atomic_init(apr_pool_t *p);
00045 
00046 /*
00047  * Atomic operations on 32-bit values
00048  * Note: Each of these functions internally implements a memory barrier
00049  * on platforms that require it
00050  */
00051 
00056 APR_DECLARE(apr_uint32_t) apr_atomic_read32(volatile apr_uint32_t *mem);
00057 
00063 APR_DECLARE(void) apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val);
00064 
00071 APR_DECLARE(apr_uint32_t) apr_atomic_add32(volatile apr_uint32_t *mem, apr_uint32_t val);
00072 
00078 APR_DECLARE(void) apr_atomic_sub32(volatile apr_uint32_t *mem, apr_uint32_t val);
00079 
00085 APR_DECLARE(apr_uint32_t) apr_atomic_inc32(volatile apr_uint32_t *mem);
00086 
00092 APR_DECLARE(int) apr_atomic_dec32(volatile apr_uint32_t *mem);
00093 
00102 APR_DECLARE(apr_uint32_t) apr_atomic_cas32(volatile apr_uint32_t *mem, apr_uint32_t with,
00103                               apr_uint32_t cmp);
00104 
00111 APR_DECLARE(apr_uint32_t) apr_atomic_xchg32(volatile apr_uint32_t *mem, apr_uint32_t val);
00112 
00121 APR_DECLARE(void*) apr_atomic_casptr(volatile void **mem, void *with, const void *cmp);
00122 
00125 #ifdef __cplusplus
00126 }
00127 #endif
00128 
00129 #endif  /* !APR_ATOMIC_H */

Apacheに対してSun Jul 19 22:05:24 2009に生成されました。  doxygen 1.4.7