• R/O
  • HTTP
  • SSH
  • HTTPS

mingw-get: Commit

The MinGW.OSDN Installation Manager Tool


Commit MetaInfo

Revisión3615999b305997fbd231041763498e5096236c3f (tree)
Tiempo2020-06-22 23:10:29
AutorKeith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Ignore spin wait requests with no designated referrer.

Cambiar Resumen

Diferencia incremental

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
11 2020-06-22 Keith Marshall <keith@users.osdn.me>
22
3+ Ignore spin wait requests with no designated referrer.
4+
5+ * src/pkgstat.h (pkgSpinWait::UpdateIndex) [this]: Cannot test for
6+ nullptr, since C++ specifies result as "undefined behaviour"; test...
7+ [referrer]: ...this predesignated static class property instead.
8+
9+2020-06-22 Keith Marshall <keith@users.osdn.me>
10+
311 Support options interpretation from an unborn options object.
412
513 * src/pkgopts.h (pkgOpts::Test, pkgOpts::IsSet, pkgOpts::GetValue)
--- a/src/pkgstat.h
+++ b/src/pkgstat.h
@@ -4,8 +4,8 @@
44 *
55 * $Id$
66 *
7- * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
8- * Copyright (C) 2012, MinGW.org Project
7+ * Written by Keith Marshall <keith@users.osdn.me>
8+ * Copyright (C) 2012, 2020, MinGW.org Project
99 *
1010 *
1111 * Public declaration of the pkgSpinWait class, which provides an
@@ -47,7 +47,7 @@ class pkgSpinWait
4747 protected:
4848 static pkgSpinWait *referrer; int index;
4949 pkgSpinWait( void ): index( 0 ){ referrer = this; }
50- int UpdateIndex(){ return this ? index = (1 + index) % 4 : 0; }
50+ int UpdateIndex(){ return referrer ? index = (1 + index) % 4 : 0; }
5151 virtual int DispatchReport( const char *, va_list ) = 0;
5252 ~pkgSpinWait(){ referrer = NULL; }
5353 };
Show on old repository browser