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.
Signal.h
- Committer:
- altb
- Date:
- 2019-02-25
- Revision:
- 11:78e723ede0c6
- Parent:
- 4:288253c4da29
File content as of revision 11:78e723ede0c6:
/* * Signal.h * Copyright (c) 2017, ZHAW * All rights reserved. */ #ifndef SIGNAL_H_ #define SIGNAL_H_ #include <cstdlib> #include <stdint.h> #include <mbed.h> /** * This class manages the handling of unique signal flags to trigger rtos threads. */ class Signal { public: Signal(); virtual ~Signal(); virtual int32_t read(); operator int32_t(); private: static int32_t signals; // variable that holds all assigned signal flags int32_t signal; // signal flag of this object Mutex mutex; // mutex to lock critical sections }; #endif /* SIGNAL_H_ */