diff options
author | David Crocker <dcrocker@eschertech.com> | 2018-04-01 18:49:43 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2018-04-01 18:49:43 +0300 |
commit | 97e7b46202b9f71075101ed86b6967904f87fa98 (patch) | |
tree | 4852f94f2497ae43f6f2ba69c6a72ace6f1f7fd0 /src/Storage/FileInfoParser.cpp | |
parent | 4d151a5d02a8bca3810e4a75bf225136548fa1ab (diff) |
More RTOS work
Refactored mutex and task interface
Output channels, tool list and message box data are now thread safe
Diffstat (limited to 'src/Storage/FileInfoParser.cpp')
-rw-r--r-- | src/Storage/FileInfoParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Storage/FileInfoParser.cpp b/src/Storage/FileInfoParser.cpp index fcd78500..013caf1d 100644 --- a/src/Storage/FileInfoParser.cpp +++ b/src/Storage/FileInfoParser.cpp @@ -31,12 +31,12 @@ FileInfoParser::FileInfoParser() : parseState(notParsing), fileBeingParsed(nullptr), accumulatedParseTime(0), accumulatedReadTime(0), accumulatedSeekTime(0), fileOverlapLength(0) { parsedFileInfo.Init(); - parserMutexHandle = RTOSIface::CreateMutex(parserMutexStorage); + parserMutex.Create(); } bool FileInfoParser::GetFileInfo(const char *directory, const char *fileName, GCodeFileInfo& info, bool quitEarly) { - Locker lock(parserMutexHandle, MAX_FILEINFO_PROCESS_TIME); + MutexLocker lock(parserMutex, MAX_FILEINFO_PROCESS_TIME); if (!lock) { return false; |