Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ IsWSL
Function
IsWSL
src/fs.cpp:65–69 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
63
}
64
65
static bool IsWSL()
66
{
67
struct utsname uname_data;
68
return uname(&uname_data) == 0 && std::string(uname_data.version).find(
"Microsoft"
) != std::string::npos;
69
}
70
71
bool FileLock::TryLock()
72
{
Callers
1
TryLock
Method · 0.85
Calls
1
find
Method · 0.80
Tested by
no test coverage detected