nothing
Fork of FATFileSystem by
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; };