1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- static inline int
- scm_is_atomic_box (SCM obj)
- {
- return SCM_HAS_TYP11 (obj, scm_tc11_atomic_box);
- }
- static inline SCM*
- scm_atomic_box_loc (SCM obj)
- {
- return SCM_CELL_OBJECT_LOC (obj, 1)
- }
- do { \
- SCM_ASSERT_TYPE (scm_is_atomic_box (var), var, pos, FUNC_NAME, \
- "atomic box")
- } while (0)
- SCM_INTERNAL SCM scm_make_atomic_box (SCM init)
- SCM_INTERNAL SCM scm_atomic_box_p (SCM obj)
- SCM_INTERNAL SCM scm_atomic_box_ref (SCM box);
- SCM_INTERNAL SCM scm_atomic_box_set_x (SCM box, SCM val)
- SCM_INTERNAL SCM scm_atomic_box_swap_x (SCM box, SCM val)
- SCM_INTERNAL SCM scm_atomic_box_compare_and_swap_x (SCM box, SCM expected, SCM desired)
- SCM_INTERNAL void scm_i_atomic_box_print (SCM box, SCM port, scm_print_state *pstate)
- SCM_INTERNAL void scm_register_atomic (void)
|