Add identity for std::mutex

develop
lethosor 2023-05-28 02:50:39 -04:00
parent a299f0b5fb
commit e5bc4b3221
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 8 additions and 2 deletions

@ -25,10 +25,11 @@ distribution.
#pragma once
#include <deque>
#include <string>
#include <map>
#include <mutex>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include "DataDefs.h"
@ -570,6 +571,11 @@ namespace df
static opaque_identity *get() { return &identity; }
};
template<> struct DFHACK_EXPORT identity_traits<std::mutex> {
static opaque_identity identity;
static opaque_identity *get() { return &identity; }
};
template<> struct DFHACK_EXPORT identity_traits<char*> {
static ptr_string_identity identity;
static ptr_string_identity *get() { return &identity; }