We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a7b031 commit 67cbfe1Copy full SHA for 67cbfe1
1 file changed
src/hx/StdLibs.cpp
@@ -30,6 +30,7 @@ typedef int64_t __int64;
30
#include <stdio.h>
31
#include <time.h>
32
#include <clocale>
33
+#include <mutex>
34
35
36
#ifdef HX_ANDROID
@@ -785,7 +786,7 @@ Dynamic __hxcpp_create_var_args(Dynamic &inArrayFunc)
785
786
787
788
-static HxMutex sgFieldMapMutex;
789
+static std::mutex sgFieldMapMutex;
790
791
typedef std::map<std::string,int> StringToField;
792
@@ -809,7 +810,7 @@ const String &__hxcpp_field_from_id( int f )
809
810
811
int __hxcpp_field_to_id( const char *inFieldName )
812
{
- AutoLock lock(sgFieldMapMutex);
813
+ std::lock_guard<std::mutex> lock(sgFieldMapMutex);
814
815
if (!sgFieldToStringAlloc)
816
0 commit comments