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.
Fork of FATFileSystem by
Diff: FATDirHandle.h
- Revision:
- 8:c4baca9a2c3d
- Parent:
- 1:46ce1e16c870
diff -r 094f84646b9f -r c4baca9a2c3d FATDirHandle.h --- a/FATDirHandle.h Fri Dec 11 16:16:25 2015 +0000 +++ b/FATDirHandle.h Thu Aug 25 09:34:29 2016 +0100 @@ -23,19 +23,27 @@ #define MBED_FATDIRHANDLE_H #include "DirHandle.h" +#include "PlatformMutex.h" using namespace mbed; class FATDirHandle : public DirHandle { public: - FATDirHandle(const FATFS_DIR &the_dir); + FATDirHandle(const FATFS_DIR &the_dir, PlatformMutex * mutex); virtual int closedir(); virtual struct dirent *readdir(); virtual void rewinddir(); virtual off_t telldir(); virtual void seekdir(off_t location); + protected: + + virtual void lock(); + virtual void unlock(); + + PlatformMutex * _mutex; + private: FATFS_DIR dir; struct dirent cur_entry;