# pthreads **Repository Path**: micoou/pthreads ## Basic Information - **Project Name**: pthreads - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-03 - **Last Updated**: 2026-06-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # pthreads-win32 (libpthread) POSIX Threads for Windows — x64 静态库构建 ## 前置条件 - Visual Studio 2022 (v143 工具集) - PowerShell 5.1+ ## 编译 ```powershell cd d:\Projects\disking\ezdi2\github\pthreads # Release (默认) .\build.ps1 # Debug .\build.ps1 -Config Debug ``` ## 清理 ```powershell # 清理 Release .\build.ps1 -Clean # 清理 Debug .\build.ps1 -Clean -Config Debug ``` ## 输出 | 配置 | 静态库 | 头文件 | |------|--------|--------| | Release | `bin\Release\libpthread.lib` | `bin\include\pthread\*.h` | | Debug | `bin\Debug\libpthread.lib` | `bin\include\pthread\*.h` | 头文件: - `bin\include\pthread\pthread.h` - `bin\include\pthread\sched.h` - `bin\include\pthread\semaphore.h` ## 使用 在项目中引用静态库: ```cpp #define __PTW32_STATIC_LIB #include #pragma comment(lib, "libpthread.lib") ``` 附加包含目录:`bin\include` 附加库目录:`bin\Release` 或 `bin\Debug`