The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: platform/FileHandle.h
- Revision:
- 169:a7c7b631e539
- Parent:
- 167:84c0a372a020
- Child:
- 170:e95d10626187
--- a/platform/FileHandle.h Thu May 24 15:35:55 2018 +0100 +++ b/platform/FileHandle.h Fri Jun 22 15:38:59 2018 +0100 @@ -192,7 +192,16 @@ */ virtual int set_blocking(bool blocking) { - return -1; + return blocking ? 0 : -ENOTTY; + } + + /** Check current blocking or non-blocking mode for file operations. + * + * @return true for blocking mode, false for non-blocking mode. + */ + virtual bool is_blocking() const + { + return true; } /** Check for poll event flags