Commit 6fff0e0
committed
compat: fix
Add `__declspec(thread)` to the static buffer in the Windows
`basename` func to prevent data races in multi-threaded
contexts, where concurrent calls could corrupt a shared static buffer.
[__declspec(thread)](https://learn.microsoft.com/en-us/cpp/cpp/thread?view=msvc-170)
Signed-off-by: slabbancz <slabbancz@microsoft.com>basename buffer to be thread-local on Windows1 parent acad02a commit 6fff0e0
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments