]> git.pld-linux.org Git - packages/crossmingw32-std-threads.git/blobdiff - mingw-std-threads-errors.patch
- updated to 20180912 snapshot
[packages/crossmingw32-std-threads.git] / mingw-std-threads-errors.patch
diff --git a/mingw-std-threads-errors.patch b/mingw-std-threads-errors.patch
new file mode 100644 (file)
index 0000000..927111e
--- /dev/null
@@ -0,0 +1,25 @@
+--- mingw-std-threads-ee67ef384470e998c8e0b7301f7a79b5019251a2/mingw.condition_variable.h.orig 2018-09-11 17:06:14.000000000 +0200
++++ mingw-std-threads-ee67ef384470e998c8e0b7301f7a79b5019251a2/mingw.condition_variable.h      2018-10-03 21:35:48.633130795 +0200
+@@ -105,7 +105,7 @@
+         else\r
+         {\r
+             using namespace std;\r
+-            throw system_error(make_error_code(errc::protocol_error));\r
++            throw system_error(make_error_code(errc::invalid_argument));\r
+         }\r
+     }\r
+ public:\r
+--- reads-ee67ef384470e998c8e0b7301f7a79b5019251a2/mingw.mutex.h.orig  2018-09-11 17:06:14.000000000 +0200
++++ reads-ee67ef384470e998c8e0b7301f7a79b5019251a2/mingw.mutex.h       2018-10-03 21:40:38.086460829 +0200
+@@ -300,9 +300,9 @@
+         case WAIT_OBJECT_0:\r
+             return true;\r
+         case WAIT_ABANDONED:\r
+-            throw system_error(make_error_code(errc::owner_dead));\r
++            throw system_error(make_error_code(errc::no_such_process));\r
+         default:\r
+-            throw system_error(make_error_code(errc::protocol_error));\r
++            throw system_error(make_error_code(errc::invalid_argument));\r
+         }\r
+     }\r
+ protected:\r
This page took 0.065711 seconds and 4 git commands to generate.