[glib: 1/2] gthread-posix: Do not do unguarded and non-atomic assignment of an atomic




commit 39ecb71452edd869d676ec5789b8d56336d22cb1
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Tue Jul 12 14:13:23 2022 +0200

    gthread-posix: Do not do unguarded and non-atomic assignment of an atomic
    
    We ended up always skipping showing the scheduler settings errors after
    the first call, while we were already setting such variable atomically
    in case it needed to.
    
    Related to: #1672

 glib/gthread-posix.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/glib/gthread-posix.c b/glib/gthread-posix.c
index fbf7531fe1..d96fca5ca2 100644
--- a/glib/gthread-posix.c
+++ b/glib/gthread-posix.c
@@ -1265,7 +1265,6 @@ linux_pthread_proxy (void *data)
         g_critical ("Failed to set scheduler settings: %s", g_strerror (errsv));
       else if (res == -1)
         g_debug ("Failed to set scheduler settings: %s", g_strerror (errsv));
-      printed_scheduler_warning = TRUE;
     }
 
   return thread->proxy (data);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]