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.
Diff: FATFileHandle.h
- Revision:
- 8:c4baca9a2c3d
- Parent:
- 1:46ce1e16c870
--- a/FATFileHandle.h Fri Dec 11 16:16:25 2015 +0000 +++ b/FATFileHandle.h Thu Aug 25 09:34:29 2016 +0100 @@ -23,13 +23,14 @@ #define MBED_FATFILEHANDLE_H #include "FileHandle.h" +#include "PlatformMutex.h" using namespace mbed; class FATFileHandle : public FileHandle { public: - FATFileHandle(FIL fh); + FATFileHandle(FIL fh, PlatformMutex * mutex); virtual int close(); virtual ssize_t write(const void* buffer, size_t length); virtual ssize_t read(void* buffer, size_t length); @@ -40,7 +41,11 @@ protected: + virtual void lock(); + virtual void unlock(); + FIL _fh; + PlatformMutex * _mutex; };