atomic.h File Reference

#include <BeBuild.h>
#include <OS.h>

Go to the source code of this file.

Classes

struct  atomic_list_head

Typedefs

typedef atomic_list_head atomic_list_head

Functions

int32 compare_and_swap32 (volatile int32 *location, int32 oldValue, int32 newValue)
int32 compare_and_swap64 (volatile int64 *location, int64 oldValue, int64 newValue)
bool cmpxchg32 (volatile int32 *_atom, int32 *_value, int32 _newValue)
bool cmpxchg64 (volatile int64 *_atom, int64 *_value, int64 _newValue)
void atomic_push (atomic_list_head *list, void *item)
void * atomic_pop (atomic_list_head *list)


Typedef Documentation

typedef struct atomic_list_head atomic_list_head
 


Function Documentation

void* atomic_pop atomic_list_head list  )  [inline]
 

void atomic_push atomic_list_head list,
void *  item
[inline]
 

bool cmpxchg32 volatile int32 *  _atom,
int32 *  _value,
int32  _newValue
[inline]
 

bool cmpxchg64 volatile int64 *  _atom,
int64 *  _value,
int64  _newValue
[inline]
 

int32 compare_and_swap32 volatile int32 *  location,
int32  oldValue,
int32  newValue
 

int32 compare_and_swap64 volatile int64 *  location,
int64  oldValue,
int64  newValue
 


Copyright 2005 by yellowTAB GmbH, Be Inc., Palm Source Inc. and their respective legal successors
All rights reserved.