| 81 | static IThreadFactory* systemPool = nullptr; |
| 82 | |
| 83 | IThreadFactory* SystemThreadFactory() { |
| 84 | if (systemPool) { |
| 85 | return systemPool; |
| 86 | } |
| 87 | |
| 88 | return SystemThreadPoolImpl(); |
| 89 | } |
| 90 | |
| 91 | void SetSystemThreadFactory(IThreadFactory* pool) { |
| 92 | systemPool = pool; |