1
0
mirror of https://github.com/fumiama/simple-http-server.git synced 2026-06-08 03:56:18 +08:00

fix: possible concurrent errors

This commit is contained in:
源文雨
2026-01-30 23:09:51 +08:00
parent 80c4c982dd
commit 205614178e
7 changed files with 175 additions and 105 deletions

26
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,26 @@
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/simple-http-server",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build",
"environment": [
{
"name": "DYLD_FALLBACK_LIBRARY_PATH",
"value": "/usr/local/lib"
}
],
"externalConsole": false,
"MIMode": "lldb",
"preLaunchTask": "Build Debug"
}
]
}

20
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,20 @@
{
"tasks": [
{
"type": "shell",
"label": "Build Debug",
"command": "cmake -DCMAKE_BUILD_TYPE=Debug .. && make",
"options": {
"cwd": "${workspaceFolder}/build"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
}
],
"version": "2.0.0"
}