ads1115 only
Fork of mbed by
Diff: DirHandle.h
- Revision:
- 122:f9eeca106725
- Parent:
- 65:5798e58a58b1
--- a/DirHandle.h Wed May 25 16:44:06 2016 +0100 +++ b/DirHandle.h Thu Jul 07 14:34:11 2016 +0100 @@ -44,6 +44,8 @@ * The root directory is considered to contain all FileLike and * FileSystemLike objects, so the DIR* returned by opendir("/") will * reflect this. + * + * @Note Synchronization level: Set by subclass */ class DirHandle { @@ -82,9 +84,23 @@ * * @param location The location to seek to. Must be a value returned by telldir. */ - virtual void seekdir(off_t location) { } + virtual void seekdir(off_t location) { (void)location;} virtual ~DirHandle() {} + +protected: + + /** Acquire exclusive access to this object. + */ + virtual void lock() { + // Stub + } + + /** Release exclusive access to this object. + */ + virtual void unlock() { + // Stub + } }; } // namespace mbed