003 File Manager
Current Path:
/usr/src/contrib/subversion/subversion/include/private
usr
/
src
/
contrib
/
subversion
/
subversion
/
include
/
private
/
📁
..
📄
README
(241 B)
📄
ra_svn_sasl.h
(2.63 KB)
📄
ra_svn_wrapped_sasl.h
(3.89 KB)
📄
svn_adler32.h
(1.47 KB)
📄
svn_atomic.h
(4.83 KB)
📄
svn_auth_private.h
(11.32 KB)
📄
svn_branch.h
(22.98 KB)
📄
svn_branch_compat.h
(10.78 KB)
📄
svn_branch_impl.h
(5.67 KB)
📄
svn_branch_nested.h
(7.55 KB)
📄
svn_branch_repos.h
(3.47 KB)
📄
svn_cache.h
(22.67 KB)
📄
svn_cert.h
(2.27 KB)
📄
svn_client_mtcc.h
(7.8 KB)
📄
svn_client_private.h
(22.85 KB)
📄
svn_client_shelf.h
(16.26 KB)
📄
svn_client_shelf2.h
(15.27 KB)
📄
svn_cmdline_private.h
(10.52 KB)
📄
svn_config_private.h
(4.26 KB)
📄
svn_dav_protocol.h
(2.56 KB)
📄
svn_debug.h
(3.35 KB)
📄
svn_delta_private.h
(4.91 KB)
📄
svn_dep_compat.h
(6.64 KB)
📄
svn_diff_private.h
(6 KB)
📄
svn_diff_tree.h
(14.32 KB)
📄
svn_dirent_uri_private.h
(1.85 KB)
📄
svn_doxygen.h
(1.27 KB)
📄
svn_editor.h
(43.09 KB)
📄
svn_element.h
(12.83 KB)
📄
svn_eol_private.h
(3.18 KB)
📄
svn_error_private.h
(1.67 KB)
📄
svn_fs_fs_private.h
(11.08 KB)
📄
svn_fs_private.h
(8.36 KB)
📄
svn_fs_util.h
(11.11 KB)
📄
svn_fspath.h
(5.36 KB)
📄
svn_io_private.h
(6.47 KB)
📄
svn_log.h
(6.96 KB)
📄
svn_magic.h
(2.36 KB)
📄
svn_mergeinfo_private.h
(12.71 KB)
📄
svn_mutex.h
(4.3 KB)
📄
svn_object_pool.h
(4.53 KB)
📄
svn_opt_private.h
(5.73 KB)
📄
svn_packed_data.h
(9.39 KB)
📄
svn_ra_private.h
(12.07 KB)
📄
svn_ra_svn_private.h
(38.63 KB)
📄
svn_repos_private.h
(15.45 KB)
📄
svn_skel.h
(8.46 KB)
📄
svn_sorts_private.h
(7.66 KB)
📄
svn_sqlite.h
(23.22 KB)
📄
svn_string_private.h
(11.05 KB)
📄
svn_subr_private.h
(24.43 KB)
📄
svn_temp_serializer.h
(8.75 KB)
📄
svn_token.h
(3.11 KB)
📄
svn_utf_private.h
(11.18 KB)
📄
svn_wc_private.h
(93.26 KB)
Editing: svn_atomic.h
/** * @copyright * ==================================================================== * 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. * ==================================================================== * @endcopyright * * @file svn_atomic.h * @brief Macros and functions for atomic operations */ #ifndef SVN_ATOMIC_H #define SVN_ATOMIC_H #include <apr_version.h> #include <apr_atomic.h> #include "svn_error.h" #include "private/svn_dep_compat.h" #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** * @name Macro definitions for atomic types and operations * * @note These are necessary because the apr_atomic API changed somewhat * between apr-0.x and apr-1.x. * @{ */ /** The type used by all the other atomic operations. */ #define svn_atomic_t apr_uint32_t /** Atomically read an #svn_atomic_t from memory. */ #define svn_atomic_read(mem) apr_atomic_read32((mem)) /** Atomically set an #svn_atomic_t in memory. */ #define svn_atomic_set(mem, val) apr_atomic_set32((mem), (val)) /** Atomically increment an #svn_atomic_t. */ #define svn_atomic_inc(mem) apr_atomic_inc32(mem) /** Atomically decrement an #svn_atomic_t. */ #define svn_atomic_dec(mem) apr_atomic_dec32(mem) /** * Atomic compare-and-swap. * * Compare the value that @a mem points to with @a cmp. If they are * the same swap the value with @a with. * * @note svn_atomic_cas should not be combined with the other * svn_atomic operations. A comment in apr_atomic.h explains * that on some platforms, the CAS function is implemented in a * way that is incompatible with the other atomic operations. */ #define svn_atomic_cas(mem, with, cmp) \ apr_atomic_cas32((mem), (with), (cmp)) /** @} */ /** * @name Single-threaded atomic initialization * @{ */ /** * Callback for svn_atomic__init_once(). * @return an #svn_error_t if the initialization fails. * @since New in 1.10 */ typedef svn_error_t *(*svn_atomic__err_init_func_t)(void *baton, apr_pool_t *pool); /** * Callback for svn_atomic__init_no_error(). * @return a string containing an error message if the initialization fails. * @since New in 1.10 */ typedef const char *(*svn_atomic__str_init_func_t)(void *baton); /** * Call an initialization function in a thread-safe manner. * * @a global_status must be a pointer to a global, zero-initialized * #svn_atomic_t. @a err_init_func is a pointer to the function that * performs the actual initialization. @a baton and and @a pool are * passed on to @a err_init_func for its use. * * @return the error returned by @a err_init_func. * * @since New in 1.5. */ svn_error_t * svn_atomic__init_once(volatile svn_atomic_t *global_status, svn_atomic__err_init_func_t err_init_func, void *baton, apr_pool_t* pool); /** * Call an initialization function in a thread-safe manner. * * Unlike svn_atomic__init_once(), this function does not need a pool * and does not create an #svn_error_t, and neither should the * @a str_init_func implementation. * * @a global_status must be a pointer to a global, zero-initialized * #svn_atomic_t. @a str_init_func is a pointer to the function that * performs the actual initialization. @a baton is passed on to * @a str_init_func for its use. * * @return the error string returned by @a str_init_func. * * @since New in 1.10. */ const char * svn_atomic__init_once_no_error(volatile svn_atomic_t *global_status, svn_atomic__str_init_func_t str_init_func, void *baton); /** * Query and increment the global counter and set @a value to the new * counter value. * * This function is thread-safe and you should call it whenever you need * a number that is unique within the current process. The values are > 0. * * @return the error object in case of a synchronization failure. * * @since New in 1.10. */ svn_error_t * svn_atomic__unique_counter(apr_uint64_t* value); /** @} */ #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* SVN_ATOMIC_H */
Upload File
Create Folder