bug-gnulib
[Top][All Lists]
Advanced

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

Re: Missing glwthread_spin_trylock()


From: Bruno Haible
Subject: Re: Missing glwthread_spin_trylock()
Date: Fri, 16 Aug 2019 23:40:36 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-157-generic; KDE/5.18.0; x86_64; ; )

Gisle Vanem wrote:
> I see the Pthread stuff was changed massively lately.
> Now the function 'glwthread_spin_trylock()' called from
> pthread-spin.c is now-where to be found.

Thanks for the report. This patch should fix it:


2019-08-16  Bruno Haible  <address@hidden>

        windows-spin: Implement declared functions.
        Reported by Gisle Vanem <address@hidden> in
        <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
        * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
        name.

diff --git a/lib/windows-spin.c b/lib/windows-spin.c
index bccef07..43371f3 100644
--- a/lib/windows-spin.c
+++ b/lib/windows-spin.c
@@ -41,7 +41,7 @@ glwthread_spin_lock (glwthread_spinlock_t *lock)
 }
 
 int
-glwthread_spinlock_trylock (glwthread_spinlock_t *lock)
+glwthread_spin_trylock (glwthread_spinlock_t *lock)
 {
   /* If lock->word is 0, then replace it with 1.  */
   /* InterlockedCompareExchange




reply via email to

[Prev in Thread] Current Thread [Next in Thread]