* 用例描述: 使用多个PAGPlayer模拟多个PAGView同时渲染 */
| 42 | * 用例描述: 使用多个PAGPlayer模拟多个PAGView同时渲染 |
| 43 | */ |
| 44 | PAG_TEST(SimpleMultiThreadCase, MultiPAGView) { |
| 45 | std::vector<std::thread> threads; |
| 46 | int num = 10; |
| 47 | for (int i = 0; i < num; i++) { |
| 48 | threads.emplace_back(std::thread(mockPAGView)); |
| 49 | } |
| 50 | for (auto& mock : threads) { |
| 51 | if (mock.joinable()) mock.join(); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | static std::shared_ptr<PAGSurface> TestPAGSurface = nullptr; |
| 56 | static std::shared_ptr<PAGPlayer> TestPAGPlayer = nullptr; |
nothing calls this directly
no test coverage detected