Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

atomic.h File Reference

Go to the source code of this file.

Defines

#define acquire_lock(lock, val)   ({ (lock) = (val); })
#define acquire_lock_no_ien(lock, val)   ({ (lock) = (val); })
#define release_lock(lock, ien)   ({ (lock) = 0; })
#define release_lock_no_ien(lock)   ({ (lock) = 0; })
#define atomic_add(var, val)   ({ int t = (var); (var) += (val); t; })
#define atomic_sub(var, val)   ({ int t = (var); (var) -= (val); t; })
#define atomic_or(var, val)   ({ int t = (var); (var) |= (val); t; })
#define atomic_addi(var, val)   ({ int t = (var); (var) += (val); t; })
#define atomic_subi(var, val)   ({ int t = (var); (var) -= (val); t; })
#define atomic_srl(var, val)   ({ int t = (var); (var) >>= (val); t; })
#define atomic_sll(var, val)   ({ int t = (var); (var) <<= (val); t; })
#define atomic_set(var, val)   ({ int t = (var); (var) = (val); t; })
#define atomic_seti(var, val)   ({ int t = (var); (var) = (val); t; })


Define Documentation

#define acquire_lock lock,
val   )     ({ (lock) = (val); })
 

Definition at line 14 of file atomic.h.

Referenced by search_blocked_list(), search_ready_list(), select_thread(), sem_unblock_someone(), sem_Vn(), serial_out(), steal_thread(), sym_register(), thr_lookup(), thread_table_add(), thread_table_remove(), and trt_load().

#define acquire_lock_no_ien lock,
val   )     ({ (lock) = (val); })
 

Definition at line 15 of file atomic.h.

Referenced by schedule_me().

#define atomic_add var,
val   )     ({ int t = (var); (var) += (val); t; })
 

Definition at line 19 of file atomic.h.

Referenced by sem_Vn(), sem_Vn_priv(), thr_create(), and trt_init().

#define atomic_addi var,
val   )     ({ int t = (var); (var) += (val); t; })
 

Definition at line 22 of file atomic.h.

Referenced by search_blocked_list(), select_thread(), sem_tryP(), sem_V(), and trt_init().

#define atomic_or var,
val   )     ({ int t = (var); (var) |= (val); t; })
 

Definition at line 21 of file atomic.h.

#define atomic_set var,
val   )     ({ int t = (var); (var) = (val); t; })
 

Definition at line 26 of file atomic.h.

#define atomic_seti var,
val   )     ({ int t = (var); (var) = (val); t; })
 

Definition at line 27 of file atomic.h.

Referenced by sem_reset().

#define atomic_sll var,
val   )     ({ int t = (var); (var) <<= (val); t; })
 

Definition at line 25 of file atomic.h.

Referenced by steal_thread().

#define atomic_srl var,
val   )     ({ int t = (var); (var) >>= (val); t; })
 

Definition at line 24 of file atomic.h.

Referenced by scale_spin_counts().

#define atomic_sub var,
val   )     ({ int t = (var); (var) -= (val); t; })
 

Definition at line 20 of file atomic.h.

Referenced by sem_Pn_nb().

#define atomic_subi var,
val   )     ({ int t = (var); (var) -= (val); t; })
 

Definition at line 23 of file atomic.h.

Referenced by search_blocked_list(), sem_P(), sem_tryP(), and thr_resume().

#define release_lock lock,
ien   )     ({ (lock) = 0; })
 

Definition at line 16 of file atomic.h.

Referenced by add_to_ready_list(), context_switch(), search_blocked_list(), search_ready_list(), select_thread(), sem_unblock_someone(), sem_Vn(), serial_out(), steal_thread(), sym_register(), thr_lookup(), thr_resume(), thread_table_add(), thread_table_remove(), and trt_load().

#define release_lock_no_ien lock   )     ({ (lock) = 0; })
 

Definition at line 17 of file atomic.h.

Referenced by select_thread().


Generated on Wed Feb 15 14:52:39 2006 for yapi by doxygen 1.3.2