| 109 | |
| 110 | template <typename T> |
| 111 | void _unregister_open_file(T* _r) |
| 112 | { |
| 113 | xrCriticalSection _lock; |
| 114 | _lock.Enter(); |
| 115 | |
| 116 | xr_vector<_open_file>::iterator it = std::find_if(g_open_files.begin(), g_open_files.end(), eq_pointer<T>(_r)); |
| 117 | VERIFY(it != g_open_files.end()); |
| 118 | _open_file& _of = *it; |
| 119 | _of._reader = nullptr; |
| 120 | _lock.Leave(); |
| 121 | } |
| 122 | |
| 123 | XRCORE_API void _dump_open_files(int mode) |
| 124 | { |