[57cd6e]: src / c / threads / ecl_atomics.h Maximize Restore History

Download this file

ecl_atomics.h    31 lines (25 with data), 902 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* -*- mode: c; c-basic-offset: 8 -*- */
/*
ecl_atomics.h -- alternative definitions for atomic operations
*/
/*
Copyright (c) 2012, Juan Jose Garcia Ripoll.
ECL is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
See file '../Copyright' for full details.
*/
#ifndef ECL_ATOMICS_H
#define AO_ASSUME_WINDOWS98
#include <ecl/atomic_ops.h>
#if !defined(AO_HAVE_compare_and_swap_full)
# error "ECL needs AO_compare_and_swap_full or an equivalent"
#endif
#if !defined(AO_HAVE_compare_and_swap)
# error "ECL needs AO_compare_and_swap or an equivalent"
#endif
#if !defined(AO_HAVE_fetch_and_add1)
# error "Cannot implement mailboxs without AO_fetch_and_add1"
#endif
#endif /* ECL_ATOMICS_H */