refactor: improve test infrastructure and fix OpenGL GLAD initialization
- Rename D3D12Enum.h to D3D12Enums.h for naming consistency - Fix OpenGL unit test GLAD initialization by using gladLoadGL() instead of gladLoadGLLoader(wglGetProcAddress) for fallback support - Migrate remaining tests to use gtest_discover_tests for granular test discovery (math, core, containers, memory, threading, debug, components, scene, resources, input, opengl) - Remove obsolete TEST_RESOURCES_DIR and copy_directory commands from OpenGL unit test CMakeLists (minimal/Res doesn't exist) - Update TEST_SPEC.md with performance metrics and per-module build/test commands for faster development workflow - Update CMake path references to use lowercase paths
This commit is contained in:
@@ -23,9 +23,9 @@ Mutex 类是对 std::mutex 的封装,提供线程安全的互斥访问机制
|
||||
| [`Lock`](lock.md) | 获取互斥锁(非 const) |
|
||||
| [`Unlock`](unlock.md) | 释放互斥锁(非 const) |
|
||||
| [`TryLock`](trylock.md) | 尝试获取互斥锁(非 const) |
|
||||
| [`lock`](lock_const.md) | 获取互斥锁(const,STL 兼容) |
|
||||
| [`unlock`](unlock_const.md) | 释放互斥锁(const,STL 兼容) |
|
||||
| [`try_lock`](try_lock_const.md) | 尝试获取互斥锁(const,STL 兼容) |
|
||||
| [`lock`](lock-const.md) | 获取互斥锁(const,STL 兼容) |
|
||||
| [`unlock`](unlock-const.md) | 释放互斥锁(const,STL 兼容) |
|
||||
| [`try_lock`](try-lock-const.md) | 尝试获取互斥锁(const,STL 兼容) |
|
||||
|
||||
## 使用示例
|
||||
|
||||
@@ -58,6 +58,6 @@ int main() {
|
||||
## 相关文档
|
||||
|
||||
- [SpinLock](../spinlock/spinlock.md) - 自旋锁
|
||||
- [ReadWriteLock](../readwritelock/readwritelock.md) - 读写锁
|
||||
- [ReadWriteLock](../read-write-lock/read-write-lock.md) - 读写锁
|
||||
- [TaskSystem](../task-system/task-system.md) - 任务系统
|
||||
- [../threading/threading.md](../threading.md) - 模块总览
|
||||
|
||||
Reference in New Issue
Block a user