ads1115 only
Fork of mbed by
Diff: LocalFileSystem.h
- Revision:
- 122:f9eeca106725
- Parent:
- 65:5798e58a58b1
- Child:
- 123:b0220dba8be7
--- a/LocalFileSystem.h Wed May 25 16:44:06 2016 +0100 +++ b/LocalFileSystem.h Thu Jul 07 14:34:11 2016 +0100 @@ -46,8 +46,11 @@ virtual off_t flen(); protected: + virtual void lock(); + virtual void unlock(); FILEHANDLE _fh; int pos; + PlatformMutex _mutex; }; /** A filesystem for accessing the local mbed Microcontroller USB disk drive @@ -56,6 +59,8 @@ * mbed Microcontroller. Once created, the standard C file access functions are used to open, * read and write files. * + * @Note Synchronization level: Thread safe + * * Example: * @code * #include "mbed.h" @@ -85,6 +90,7 @@ * not exit, you will need to hold down reset on the mbed Microcontroller to be able to see the drive again! */ class LocalFileSystem : public FileSystemLike { + // No modifiable state public: LocalFileSystem(const char* n) : FileSystemLike(n) {