mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 04:11:18 +00:00
fs: also update comment, for locking
This commit is contained in:
parent
07cd682460
commit
1bef1b58d4
1 changed files with 3 additions and 3 deletions
|
@ -139,11 +139,11 @@ namespace ams::fssystem {
|
||||||
constexpr size_t MinimumSizeToRequireLocking = 256_KB;
|
constexpr size_t MinimumSizeToRequireLocking = 256_KB;
|
||||||
constexpr size_t MinimumWorkBufferSize = 16_KB;
|
constexpr size_t MinimumWorkBufferSize = 16_KB;
|
||||||
|
|
||||||
/* If the request isn't too large, acquire a lock to prevent too many large requests in flight simultaneously. */
|
/* If the request is large enough, acquire a lock to prevent too many large requests in flight simultaneously. */
|
||||||
static constinit os::SdkMutex s_small_work_buffer_mutex;
|
static constinit os::SdkMutex s_large_work_buffer_mutex;
|
||||||
util::optional<std::scoped_lock<os::SdkMutex>> lk = util::nullopt;
|
util::optional<std::scoped_lock<os::SdkMutex>> lk = util::nullopt;
|
||||||
if (dst_size >= MinimumSizeToRequireLocking) {
|
if (dst_size >= MinimumSizeToRequireLocking) {
|
||||||
lk.emplace(s_small_work_buffer_mutex);
|
lk.emplace(s_large_work_buffer_mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Allocate a pooled buffer. */
|
/* Allocate a pooled buffer. */
|
||||||
|
|
Loading…
Reference in a new issue