diff options
author | Rickard Green <[email protected]> | 2010-06-01 13:51:34 +0000 |
---|---|---|
committer | Erlang/OTP <[email protected]> | 2010-06-01 13:51:34 +0000 |
commit | c68f1802ce375c3425795671c74c6b3fd9c3a8ef (patch) | |
tree | b2fbb14797c866cc1470f85dbc6382cf586150d4 /erts/include/internal/ethread_header_config.h.in | |
parent | b53f8a67649a371a38dc6d97b0dfe52111236a3e (diff) | |
download | otp-c68f1802ce375c3425795671c74c6b3fd9c3a8ef.tar.gz otp-c68f1802ce375c3425795671c74c6b3fd9c3a8ef.tar.bz2 otp-c68f1802ce375c3425795671c74c6b3fd9c3a8ef.zip |
OTP-8659 Add ethread support for gcc atomics
Support for using gcc's built-in functions for atomic memory access has
been added. This functionallity will be used if available and no other
native atomic implementation in ERTS is available.
Diffstat (limited to 'erts/include/internal/ethread_header_config.h.in')
-rw-r--r-- | erts/include/internal/ethread_header_config.h.in | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/erts/include/internal/ethread_header_config.h.in b/erts/include/internal/ethread_header_config.h.in index e5b4946a53..cf25ad3f55 100644 --- a/erts/include/internal/ethread_header_config.h.in +++ b/erts/include/internal/ethread_header_config.h.in @@ -1,19 +1,19 @@ /* * %CopyrightBegin% - * - * Copyright Ericsson AB 2004-2009. All Rights Reserved. - * + * + * Copyright Ericsson AB 2004-2010. All Rights Reserved. + * * The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in * compliance with the License. You should have received a copy of the * Erlang Public License along with this software. If not, it can be * retrieved online at http://www.erlang.org/. - * + * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See * the License for the specific language governing rights and limitations * under the License. - * + * * %CopyrightEnd% */ @@ -50,6 +50,12 @@ /* Define if you have a pthread_rwlock implementation that can be used */ #undef ETHR_HAVE_PTHREAD_RWLOCK_INIT +/* Define if you have gcc atomic operations */ +#undef ETHR_HAVE_GCC_ATOMIC_OPS + +/* Define if you prefer gcc native ethread implementations */ +#undef ETHR_PREFER_GCC_NATIVE_IMPLS + /* Define if you want to turn on extra sanity checking in the ethread library */ #undef ETHR_XCHK |