3802679de4
- Moved `file::getlock(path)` from `Tactility` to `TactilityCore` - Changed all existing `file::*` functions to implement locking by default - Removed all manual locking where `file::*` functions were used - When `DevelopmentService` receives a file, it doesn't try to allocate it all in memory. This fixes going out-of-memory on devices without PSRAM. - Fix for TactilityC include
13 lines
256 B
C++
13 lines
256 B
C++
#include "Tactility/file/FileLock.h"
|
|
|
|
#include <Tactility/hal/sdcard/SdCardDevice.h>
|
|
#include <Tactility/Mutex.h>
|
|
|
|
namespace tt::file {
|
|
|
|
std::shared_ptr<Lock> _Nullable findLock(const std::string& path) {
|
|
return hal::sdcard::findSdCardLock(path);
|
|
}
|
|
|
|
}
|