mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
ircd::fs::prof::psi: Eliminate non-trivial thread_local.
This commit is contained in:
parent
9ba0a58769
commit
6f8d2c7578
1 changed files with 1 additions and 6 deletions
|
@ -333,14 +333,9 @@ noexcept try
|
||||||
if(unlikely(!file.name))
|
if(unlikely(!file.name))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
thread_local unique_mutable_buffer path_buf
|
|
||||||
{
|
|
||||||
fs::PATH_MAX_LEN
|
|
||||||
};
|
|
||||||
|
|
||||||
const auto &path
|
const auto &path
|
||||||
{
|
{
|
||||||
fs::path(path_buf, vector_view<const string_view>
|
fs::path(fs::path_scratch, vector_view<const string_view>
|
||||||
{
|
{
|
||||||
"/proc/pressure"_sv, file.name
|
"/proc/pressure"_sv, file.name
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue