atomic.h
atomic add func
[詳細]
#include <coil/Mutex.h>
#include <coil/Guard.h>
ソースコードを見る。
説明
atomic add func
- 日付:
- $Date$
- 作者:
- Noriaki Ando <n-ando@aist.go.jp>
Copyright (C) 2008 Noriaki Ando Task-intelligence Research Group, Intelligent Systems Research Institute, National Institute of Advanced Industrial Science and Technology (AIST), Japan All rights reserved.
$Id$
マクロ定義
#define atomic_add |
( |
x, |
|
|
y |
|
) |
|
#define atomic_decr |
( |
x |
|
) |
|
#define atomic_exchange_add |
( |
x, |
|
|
y |
|
) |
exchange_add(x, y, &__mutex) |
#define atomic_incr |
( |
x |
|
) |
|
関数
int exchange_add |
( |
int * |
x, |
|
|
int |
y, |
|
|
coil::Mutex * |
mutex | |
|
) |
| | |