| 137 | static std::mutex *known_mutex = NULL; |
| 138 | |
| 139 | void compound_identity::Init(Core *core) |
| 140 | { |
| 141 | if (!known_mutex) |
| 142 | known_mutex = new std::mutex(); |
| 143 | |
| 144 | // do any late initialization required for compound identities |
| 145 | |
| 146 | for (auto ci : *list) |
| 147 | ci->doInit(core); |
| 148 | } |
| 149 | |
| 150 | bitfield_identity::bitfield_identity(size_t size, |
| 151 | const compound_identity *scope_parent, const char *dfhack_name, |