Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

atomic.h File Reference

#include "types.h"

Go to the source code of this file.

Defines

#define MACRO_CAS_ASSERT(rs, cs)

Functions

void cas_error_type_with_bad_size_used (void)
template<typename Type>
bool cas (Type *ptr, Type oldval, Type newval)
template<typename Type>
bool cas2 (Type *ptr, Type *oldval, Type *newval)
template<typename T>
atomic_change (T *ptr, T mask, T bits)
void atomic_add (Mword *l, Mword value)
void atomic_and (Mword *l, Mword mask)
void atomic_or (Mword *l, Mword bits)
bool cas_unsafe (Mword *ptr, Mword oldval, Mword newval)
bool cas2_unsafe (Mword *ptr, Mword *oldval, Mword *newval)
bool tas (Mword *l)


Define Documentation

#define MACRO_CAS_ASSERT rs,
cs   ) 
 

Value:

if( (rs) != (cs) ) \
    cas_error_type_with_bad_size_used()


Function Documentation

void atomic_add Mword *  l,
Mword  value
[inline]
 

void atomic_and Mword *  l,
Mword  mask
[inline]
 

template<typename T>
T atomic_change T *  ptr,
mask,
bits
[inline]
 

void atomic_or Mword *  l,
Mword  bits
[inline]
 

template<typename Type>
bool cas Type *  ptr,
Type  oldval,
Type  newval
[inline]
 

template<typename Type>
bool cas2 Type *  ptr,
Type *  oldval,
Type *  newval
[inline]
 

bool cas2_unsafe Mword *  ptr,
Mword *  oldval,
Mword *  newval
[inline]
 

void cas_error_type_with_bad_size_used void   ) 
 

bool cas_unsafe Mword *  ptr,
Mword  oldval,
Mword  newval
[inline]
 

bool tas Mword *  l  )  [inline]
 


Generated on Mon Sep 26 14:20:12 2005 for Fiasco by  doxygen 1.4.2