2013-11-27 16:28:31 +01:00
|
|
|
/*
|
2013-06-18 17:21:38 +02:00
|
|
|
* Copyright (C) 2013 Freie Universität Berlin
|
2010-09-22 15:10:42 +02:00
|
|
|
*
|
2013-11-22 20:47:05 +01:00
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser General
|
2013-06-18 17:21:38 +02:00
|
|
|
* Public License. See the file LICENSE in the top level directory for more
|
|
|
|
* details.
|
2013-11-27 16:28:31 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @addtogroup core_util
|
2010-09-22 15:10:42 +02:00
|
|
|
* @{
|
2013-11-27 16:28:31 +01:00
|
|
|
*
|
|
|
|
* @file atomic.h
|
|
|
|
* @brief Atomic function declarations
|
|
|
|
*
|
|
|
|
* @author Freie Universität Berlin, Computer Systems & Telematics
|
|
|
|
* @author Kaspar Schleiser <kaspar.schleiser@fu-berlin.de>
|
2010-09-22 15:10:42 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ATOMIC_H
|
|
|
|
#define _ATOMIC_H
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief sets "val" to "set", returns old "val", atomically
|
|
|
|
*/
|
|
|
|
|
2013-06-20 18:18:29 +02:00
|
|
|
extern unsigned int atomic_set_return(unsigned int *val, unsigned int set);
|
2010-09-22 15:10:42 +02:00
|
|
|
|
2013-11-27 16:28:31 +01:00
|
|
|
/** @} */
|
2010-09-22 15:10:42 +02:00
|
|
|
#endif /* _ATOMIC_H */
|