Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed DS18B20 TextLCD
atomic_flag.h
- Committer:
- KamilCuk
- Date:
- 2020-02-13
- Revision:
- 0:55c37ea095b0
File content as of revision 0:55c37ea095b0:
#include <mbed.h>
class atomic_flag {
volatile core_util_atomic_flag _data;
public:
atomic_flag() { clear(); }
atomic_flag( const atomic_flag& );
atomic_flag& operator=( const atomic_flag& );
atomic_flag& operator=( const atomic_flag& ) volatile;
void clear() { core_util_atomic_flag_clear(&_data); }
bool test_and_set() { return core_util_atomic_flag_test_and_set(&_data); }
};