| 59 | } |
| 60 | |
| 61 | ~PoolCreator() |
| 62 | { |
| 63 | dmMutex::Lock(m_Mutex); |
| 64 | if (m_Pool) { |
| 65 | dmConnectionPool::Delete(m_Pool); |
| 66 | } |
| 67 | dmMutex::Unlock(m_Mutex); |
| 68 | dmMutex::Delete(m_Mutex); |
| 69 | } |
| 70 | |
| 71 | // Create the pool lazily for two reasons |
| 72 | // 1. If dlib is imported from loaded from python it will crash and burn |