~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to erts/include/internal/tile/atomic.h

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-08-05 20:54:29 UTC
  • mfrom: (6.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090805205429-pm4pnwew8axraosl
Tags: 1:13.b.1-dfsg-5
* Fixed parentheses in Emacs mode (closes: #536891).
* Removed unnecessary conflicts with erlang-manpages package.
* Added workaround for #475459: disabled threads on sparc architecture.
  This breaks wxErlang, so it's only a temporary solution.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
{
99
99
    /* Implement a barrier suitable for a mutex unlock. */
100
100
    __insn_mf();
101
 
    return atomic_exchange_and_and(&var->counter, mask);
 
101
    return atomic_and_val(&var->counter, mask);
102
102
}
103
103
 
104
104
static ETHR_INLINE long
105
105
ethr_native_atomic_or_retold(ethr_native_atomic_t *var, long mask)
106
106
{
107
107
    __insn_mf();
108
 
    return atomic_exchange_and_or(&var->counter, mask);
 
108
    return atomic_or_val(&var->counter, mask);
109
109
}
110
110
 
111
111
static ETHR_INLINE long